The Daydream View VR headset is no longer available for purchase as of October 15, 2019. As of November 2023, previously supported devices will no longer be able to download and install Google VR Serivces (Android application ID com.google.vr.vrcore) for new users.
In the Build Settings window, click Player Settings.
Configure the following player settings:
Setting
Value
Player Settings > XR Settings > Virtual Reality Supported
Enabled
Player Settings > XR Settings > Virtual Reality SDKs
Click + and select Daydream or Cardboard
Player Settings > Other Settings > Minimum API Level
Daydream: Android 7.0 'Nougat' (API level 24) or higher
Cardboard: Android 4.4 'KitKat' (API level 19) or higher
Player Settings > Other Settings > Package Name
Your app's package identifier
Preview the demo scene in Unity
In the Unity Project window, go to Google VR >
Demos > Scenes. Open the HelloVR scene.
Press the Play button. In the Game view you should see a
rendered demo scene.
Note that although the scene here is monoscopic, the rendering on your
phone will be stereo. Unity might display this warning message as a
reminder:
Virtual Reality SDK Daydream is not supported in Editor Play Mode.Please Build and run on a supported target device.Will attempt to enable None instead.
Daydream: (Optional) You can use a physical Daydream controller instead
of simulated controls while in play mode in the editor. To do this, use
Instant Preview.
Interact with the scene using simulation controls:
Type
Simulated action
What to do
Head movement
Turn your head
Hold Alt + move mouse
Tilt your view
Hold Control + move mouse
Cardboard input
Button press
Click anywhere in the Game view
Daydream input
Change controller orientation
Hold Shift + move mouse
Click touchpad button
Hold Shift + click left
Click app button
Hold Shift + click right
Click home button to recenter
Hold Shift + click middle
Touch the touchpad.
To see the controller, tilt your view down
Hold Control
Change the touch position on the touchpad.
To see the controller, tilt your view down
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."],[[["\u003cp\u003eThis guide provides instructions for setting up a Google VR development environment with Unity.\u003c/p\u003e\n"],["\u003cp\u003eYou can build a demo Daydream or Cardboard app for Android by following the outlined steps.\u003c/p\u003e\n"],["\u003cp\u003eThe guide covers hardware and software requirements, downloading the Google VR SDK, importing the package, and configuring settings.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes instructions on previewing the demo scene in Unity and building/running it on your device.\u003c/p\u003e\n"],["\u003cp\u003eFurther resources are provided for more in-depth details on specific Daydream app development features.\u003c/p\u003e\n"]]],["The process involves setting up a development environment with required hardware (Daydream-ready phone/Cardboard viewer) and software (Unity with Android Build Support). Download the Google VR SDK and import it into a new Unity 3D project. Configure player settings, enabling Virtual Reality support and selecting Daydream or Cardboard. Preview the \"HelloVR\" demo scene in Unity using simulated controls. Finally, connect the Android device, build the project into an APK, install it on the device and run it.\n"],null,["This guide shows you how to set up Google VR development with Unity and build a\ndemo Daydream or Cardboard app for Android.\n\nSet up your development environment\n\nHardware requirements:\n\n- **Daydream:** You'll need a [Daydream-ready phone](//vr.google.com/daydream/smartphonevr/phones/)\n and a [Daydream View](//madeby.google.com/vr/).\n\n- **Cardboard:** You'll need an Android device running Android 4.4 'KitKat'\n (API level 19) or higher and a [Cardboard viewer](//vr.google.com/cardboard/get-cardboard/).\n\nSoftware requirements:\n\n- Install Unity:\n\n - **Recommended version:** [LTS release 2018.4](//unity3d.com/unity/qa/lts-releases) or newer\n - **Minimum version for 6DoF head tracking:** 2017.3\n - **Minimum version for smartphone:** 5.6\n\n Make sure that the **Android Build Support** component is selected\n during installation.\n- Make sure your environment is configured for Android development.\n\n Refer to Unity's guide for\n [Android SDK/NDK setup](//docs.unity3d.com/Manual/android-sdksetup.html).\n\nDownload the Google VR SDK for Unity\n\n- Download the latest `GoogleVRForUnity_*.unitypackage` from the\n [releases page](//github.com/googlevr/gvr-unity-sdk/releases).\n\n The SDK includes the following demo scenes for Daydream\n and Cardboard:\n\n | Scene | Description |\n |--------------------------|-------------------------------------------------------------------------------------------------------|\n | **HelloVR** | Simple VR game in which you find and select a geometric shape |\n | **KeyboardDemo** | **Daydream**: Shows keyboard input on a UI canvas |\n | **PermissionsDemo** | **Daydream**: Shows a correct user permissions request flow |\n | **VideoDemo** | Shows various ways to use stereo or 360° video through playback or remote streaming |\n | **Hello6DoFControllers** | Demonstrates use of [experimental 6DoF controllers](/vr/develop/unity/guides/6dof-controller-support) |\n\n \u003cbr /\u003e\n\nImport the Google VR Unity package\n\n1. Open Unity and create a new **3D** project.\n\n2. Select **Assets** \\\u003e **Import Package** \\\u003e **Custom Package**.\n\n3. Select the `GoogleVRForUnity_*.unitypackage` file that you downloaded.\n\n4. In the **Importing Package** dialog, click **Import**.\n\n Accept any [API upgrades](//docs.unity3d.com/Manual/APIUpdater.html),\n if prompted.\n\nConfigure settings\n\n1. Select **File** \\\u003e **Build Settings**.\n\n2. Select **Android** and click **Switch Platform**.\n\n3. In the **Build Settings** window, click **Player Settings**.\n\n Configure the following player settings:\n\n | Setting | Value |\n |-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n | **Player Settings** \\\u003e **XR Settings** \\\u003e **Virtual Reality Supported** | Enabled |\n | **Player Settings** \\\u003e **XR Settings** \\\u003e **Virtual Reality SDKs** | Click **+** and select **Daydream** or **Cardboard** |\n | **Player Settings** \\\u003e **Other Settings** \\\u003e **Minimum API Level** | Daydream: **Android 7.0 'Nougat' (API level 24)** or higher Cardboard: **Android 4.4 'KitKat' (API level 19)** or higher |\n | **Player Settings** \\\u003e **Other Settings** \\\u003e **Package Name** | Your app's package identifier |\n\nPreview the demo scene in Unity\n\n1. In the Unity **Project** window, go to **Google VR** \\\u003e\n **Demos** \\\u003e **Scenes** . Open the **HelloVR** scene.\n\n2. Press the **Play** button. In the **Game** view you should see a\n rendered demo scene.\n\n Note that although the scene here is monoscopic, the rendering on your\n phone will be stereo. Unity might display this warning message as a\n reminder:\n\n *Virtual Reality SDK Daydream is not supported in Editor Play Mode.*\n *Please Build and run on a supported target device.*\n *Will attempt to enable None instead.*\n3. **Daydream:** (Optional) You can use a physical Daydream controller instead\n of simulated controls while in play mode in the editor. To do this, use\n [Instant Preview](/vr/tools/instant-preview).\n\n4. Interact with the scene using simulation controls:\n\n | Type | Simulated action | What to do |\n |---------------------|---------------------------------------------------------------------------------------|-------------------------------------|\n | Head movement | Turn your head | Hold **Alt** + move mouse |\n | | Tilt your view | Hold **Control** + move mouse |\n | **Cardboard** input | Button press | Click anywhere in the **Game** view |\n | **Daydream** input | Change controller orientation | Hold **Shift** + move mouse |\n | | Click touchpad button | Hold **Shift** + click left |\n | | Click app button | Hold **Shift** + click right |\n | | Click home button to recenter | Hold **Shift** + click middle |\n | | Touch the touchpad. To see the controller, tilt your view down | Hold **Control** |\n | | Change the touch position on the touchpad. To see the controller, tilt your view down | Hold **Control** + move mouse |\n\nPrepare your device\n\nTo prepare your supported device, [enable developer options and USB debugging](//developer.android.com/studio/debug/dev-options.html#enable).\n\nBuild and run the demo scene on your device\n\n1. Connect your phone to your computer using a USB cable.\n\n2. Select **File** \\\u003e **Build and Run**.\n\n Unity builds your project into an Android APK, installs it on the device,\n and launches it.\n3. Put the phone in your viewer and try out the demo.\n\nNext steps\n\nFor more details on building **Daydream** apps in Unity, see:\n\n- [Daydream (3DoF) controller support in Unity](/vr/unity/controller-basics)\n- [Resonance Audio](//resonance-audio.github.io/resonance-audio/)\n- [Daydream Elements](/vr/elements/overview)\n- [Streaming Video Support](/vr/video/video-overview)"]]