Stay organized with collections Save and categorize content based on your preferences.
Use Instant Preview to test VR apps that you are building in Unity instantly on your phone. Instant Preview lets you skip the build process and improve iteration time.
OverviewInstant Preview consists of an Android app for your Daydream-ready phone and a plugin for Unity or Unreal Engine.
In Instant Preview, you can:
Rendering happens on your development machine, meaning that Instant Preview is not suitable for performance testing or for calling Android APIs directly.
When streaming over Wi-Fi, use Instant Preview while on a secure network with a firewall enabled. Communication between your development machine and your phone uses unencrypted TCP over an open port.
This guide assumes that you have already created a Google VR project in Unity. If you are new to working with the Google VR SDK, see the Unity Quickstart guide.
In the Unity Project window, navigate to GoogleVR > Prefabs > InstantPreview.
Add an instance of the GvrInstantPreviewMain prefab from the InstantPreview folder to your scene hierarchy. The game object persists across scene transitions, so you can add it to the root of your loading scene.
By default, the GvrInstantPreviewMain prefab is configured to install the Instant Preview Android app automatically when you run your app in the Unity Editor.
You can also install the app from the command line:
adb install -r Assets/GoogleVR/Scripts/InstantPreview/InstantPreview.apk
Make sure that your phone is connected to your computer via USB and click Play in the Unity Editor to start previewing your app.
After launching the Instant Preview app, click Pause in the Unity Editor to stop streaming. Tap the X button or system back button on your phone to exit VR mode.
(Optional) You can make additional configurations while your app is paused and your phone is not in VR Mode. See the following sections for details on:
In Instant Preview, you can opt to stream your app's full VR experience or controller interactions only.
Mode Description Use for Full VR previewTo switch preview modes:
Instant Preview works the same way when streaming over USB or Wi-Fi.
By default, Instant Preview uses USB. Streaming over USB is best for long development sessions.
Use Wi-Fi for shorter testing sessions that require an untethered range of movement.
To stream over Wi-Fi:
Connect to your computer:
Click Play in the Unity Editor to begin streaming.
In the Unity Editor, you can configure the following GvrInstantPreviewMain prefab settings:
Setting Description Output resolutionTo improve streaming latency, consider disabling Vsync in the editor.
You can disable Vsync from Edit > Project Settings > Quality:
If you are working in macOS, try the following adjustments:
TroubleshootingIf you run into issues, check for any Instant Preview errors in the Unity Console.
Additionally, make sure that:
Your phone is connected to your computer via USB
Your phone is unlocked and developer options are enabled
In Unity's Build Settings, your build platform is set to Android
You completed the Instant Preview setup steps in this guide.
The GvrInstantPreviewMain
prefab exists and is enabled in your scene
When you press Play in Unity, the Console displays both Google VR SDK for Unity Version: 1.xx and Instant Preview Version: 1.0.0.x (where x is replaced by a version number)
If your issue is not addressed here, you can report it on the Google VR SDK for Unity issues page.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["Instant Preview lets you rapidly test VR applications built in Unity directly on your phone, bypassing the usual build process."],["It offers two preview modes: \"Full VR preview\" for immersive testing and \"Controller only\" for focused interaction development."],["You can stream your VR experience over USB for extended sessions or Wi-Fi for untethered movement, ensuring network security when using Wi-Fi."],["Rendering occurs on your development machine, so Instant Preview is not intended for performance evaluation or direct Android API calls."],["To get started, add the *GvrInstantPreviewMain* prefab to your Unity scene, connect your phone, and click \"Play\" in the editor."]]],["Instant Preview enables testing VR apps built in Unity directly on a phone, bypassing the build process. Key actions include adding the *GvrInstantPreviewMain* prefab to your Unity scene, connecting your phone via USB or Wi-Fi, and pressing play. You can choose between \"Full VR preview\" or \"Controller only\" modes, and customize streaming resolution, anti-aliasing, and bit rate in the Unity Editor. For Wi-Fi streaming, ensure network configurations allow connection via the multicast address and port specified.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4