This site has been permanently archived. The content on this site was last updated in 2019.
GvrInstantPreviewMain prefab
Required to enable 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 |
|
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,
UnityEngine.Camera,
UnityEngine.Transform
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["The `GvrInstantPreviewMain` prefab enables Instant Preview head and controller emulation in the Unity editor when the target platform is set to Android."],["It supports two modes: Full VR Preview for real-time stereo VR image preview on a connected Daydream-ready phone, and Controller-only mode for using the Daydream controller with your phone in the editor."],["This prefab manages preview resolution and quality, and it can automatically install the Instant Preview companion app on your connected device."],["It includes components for Instant Preview functionality, helper functions, camera control, and transform manipulation within the Unity environment."]]],["The `GvrInstantPreviewMain` prefab enables head and controller emulation in the editor's play mode for Android builds. It supports \"Full VR Preview\" for stereo VR image streaming to a connected phone and \"Controller-only\" mode for using the Daydream controller. This prefab allows adjustments to preview image resolution and quality. It controls automatic installation of the Instant Preview companion app on the connected device and uses `Gvr.Internal.InstantPreview`, `InstantPreviewHelper`, `UnityEngine.Camera`, and `UnityEngine.Transform` components.\n"]]