# GvrInstantPreviewMain prefab

# GvrInstantPreviewMain prefab

Required to enable [Instant Preview](https://developers.google.com/vr/tools/instant-preview) head and controller emulation in the editor in play mode. Target platform in **File \> Build Settings** must be set to 'Android'.

Supports two modes:

- **Full VR Preview mode** enables real-time preview of the stereo VR image, on your USB or Wi-Fi connected Daydream-ready phone, while running your app in the editor \* **Controller-only mode** allows you to use the Daydream controller paired with your phone while running in the editor

## Prefab Hierarchy

| Game object name | Description |
|---|---|
| [`GvrInstantPreviewMain`](https://developers.google.com/vr/reference/unity/prefab/GvrInstantPreviewMain#GvrInstantPreviewMain_object) | Provides controls to adjust the resolution and quality of the preview image that is streamed to your device, and control whether the Instant Preview companion app is automatically installed onto the connected phone when starting in-editor play mode. |

## GvrInstantPreviewMain game object

Provides controls to adjust the resolution and quality of the preview image that is streamed to your device, and control whether the Instant Preview companion app is automatically installed onto the connected phone when starting in-editor play mode.

Components:

[Gvr.Internal.InstantPreview](),

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


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

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