A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/vr/tools/instant-preview below:

Instant Preview | Google VR

Skip to main content Instant Preview

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.

Overview

Instant Preview consists of an Android app for your Daydream-ready phone and a plugin for Unity or Unreal Engine.

In Instant Preview, you can:

Developer considerations Get started

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.

  1. In the Unity Project window, navigate to GoogleVR > Prefabs > InstantPreview.

  2. 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
    
  3. Make sure that your phone is connected to your computer via USB and click Play in the Unity Editor to start previewing your app.

  4. 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.

  5. (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:

Switch preview modes

In Instant Preview, you can opt to stream your app's full VR experience or controller interactions only.

Mode Description Use for Full VR preview Longer usage sessions iterating on multiple aspects of your app. Controller only Iterating only on controller interactions

To switch preview modes:

  1. If your app is currently running, click Pause in the Unity Editor.
  2. Tap the X button or system back button on your phone to exit VR mode.
  3. In the Instant Preview app on your phone, use the Preview via... dropdown to select Full VR preview or Controller only mode.
  4. Click Play in the Unity Editor to begin streaming.
Stream over a Wi-Fi connection

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:

  1. Instant Preview uses multicast address 239.170.165.207 on port 49838 to find host computers. Make sure that your network allows this connection.
  2. Connect to your computer:

  3. Click Play in the Unity Editor to begin streaming.

Configure prefab settings

In the Unity Editor, you can configure the following GvrInstantPreviewMain prefab settings:

Setting Description Output resolution Multisample Count Bit Rate Install Apk on Run Performance tips

To 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:

Troubleshooting

If you run into issues, check for any Instant Preview errors in the Unity Console.

Additionally, make sure that:

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