# GvrControllerMain prefab

# GvrControllerMain prefab

Required in order to use the Daydream controller API in your app.

Ensures that the [`GvrControllerInput`](https://developers.google.com/vr/reference/unity/class/GvrControllerInput) API is available to your app.

Only one instance of this prefab is allowed in the active scene. Additional instances are automatically destroyed.

## Prefab Hierarchy

| Game object name | Description |
|---|---|
| [`GvrControllerMain`](https://developers.google.com/vr/reference/unity/prefab/GvrControllerMain#GvrControllerMain_object) | Holds the [`GvrControllerInput`](https://developers.google.com/vr/reference/unity/class/GvrControllerInput) API singleton. Provides static methods to access controller state and user input. |

## GvrControllerMain game object

Holds the [`GvrControllerInput`](https://developers.google.com/vr/reference/unity/class/GvrControllerInput) API singleton. Provides static methods to access controller state and user input.

Components:

[GvrControllerInput](https://developers.google.com/vr/reference/unity/class/GvrControllerInput),


[UnityEngine.Transform](https://docs.unity3d.com/Manual/class-Transform.html)