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.
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 on setting up Google VR development with Unity for iOS.\u003c/p\u003e\n"],["\u003cp\u003eIt details hardware and software prerequisites, including an iPhone 5 or higher and the Google VR SDK for Unity.\u003c/p\u003e\n"],["\u003cp\u003eYou'll learn how to create a new Unity project, import the Google VR package, and configure build settings for iOS.\u003c/p\u003e\n"],["\u003cp\u003eThe guide includes steps to preview the demo scene in Unity and build/run it on your iPhone using a Cardboard viewer.\u003c/p\u003e\n"],["\u003cp\u003eFurther resources on SDK capabilities and Spatial Audio are provided for continued learning.\u003c/p\u003e\n"]]],["This guide details setting up Google VR development within Unity for iOS, culminating in a demo Cardboard app. Key actions include: installing Unity (version 5.6+ with iOS Build Support), downloading the Google VR SDK, and creating a new 3D Unity project. Users then import the SDK, configure build settings for iOS (enabling VR, selecting Cardboard SDK, setting minimum iOS version to 8.0+), and preview the *HelloVR* demo scene within Unity using simulation controls. Finally, they build and run the project on their iOS device.\n"],null,["This guide shows you how to set up Google VR development with Unity and build a\ndemo Cardboard app for iOS.\n\nSet up your development environment\n\nHardware requirements:\n\n- You'll need an iPhone 5 or higher, running iOS 8.0 or higher.\n\n- You'll need 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:** 5.6\n\n Make sure that the **iOS Build Support** component is selected\n during installation.\n\n- Make sure your environment is configured for iOS development.\n\n Refer to Unity's guide for [Getting started with iOS development](//docs.unity3d.com/Manual/iphone-GettingStarted.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 Cardboard:\n\n | Scene | Description |\n |-------------|----------------------------------------------------|\n | **HelloVR** | Simple VR game in which you find and select a cube |\n\n \u003cbr /\u003e\n\nCreate a new Unity project and import 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 build settings and player settings\n\n1. Select **File** \\\u003e **Build Settings**.\n\n2. Select **iOS** 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 **Other Settings** \\\u003e **Virtual Reality Supported** | Enabled |\n | **Player Settings** \\\u003e **Other Settings** \\\u003e **SDKs** | Click **+** and select **Cardboard** |\n | **Player Settings** \\\u003e **Other Settings** \\\u003e **Target minimum iOS version** | **8.0** or higher |\n | **Player Settings** \\\u003e **Other Settings** \\\u003e **Bundle Identifier** | Follow reverse the DNS format suggested by Apple |\n\nPreview the demo scene in Unity\n\n1. In the Unity **Project** window, go to **Assets** \\\u003e **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.\n3. 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\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 and opens the generated Xcode workspace.\n | **Note:** If you use **Build Settings...** \\\u003e **Build** to build your project, be sure to open the generated `*.xcworkspace` *workspace* file in Xcode, not the included `*.xcodeproj` *project* file. Opening the project file will result in build errors.\n3. Put the phone in your viewer and try out the demo.\n\nNext steps\n\n- Learn more about the [SDK capabilities](/vr/unity/guide).\n\n- Learn more about [Spatial Audio](/vr/concepts/spatial-audio)."]]