If Cardboard is the only item in the Virtual Reality SDKs list, the app does not appear in the VR Google Play store. Asynchronous reprojection is a requirement for Daydream, so all devices which support Daydream also support asynchronous reprojection.
If Daydream is the only item in the Virtual Reality SDKs list, VR Android Manifest entries are added so that the app appears in the VR-specific Google Play store. If Cardboard is above Daydream in the Virtual Reality SDKs list, the application might not run in Daydream mode, even on Daydream hardware. Unity reads the list from top to bottom until it finds a device configuration that works, so the addition, removal or ordering of these devices in that list have consequences on built application functionality. This means that any modification you make to the view hierarchy before you initialize Daydream for Unity is removed while in VR mode.ĭaydream and Cardboard have separate entries in the Virtual Reality SDKs list. Integration of Daydream for Unity takes over the Unity activity’s view hierarchy. Rendering is done side-by-side, over a single, double-wide Texture. To do this, call VRSettings.LoadDeviceByName and pass in the string name of the device. Use the device names daydream and cardboard to load a specific device when you want to enable VR for that device. When working with Daydream for Unity, note the following:
Follow the same workflow you would for normal Android development (see documentation on Android development for more information), and ensure when you build and run your game (menu: File > Build & Run), you build and run it on a Daydream-capable phone. You are now ready create your Unity content for Daydream. For more information about API levels for Android, see documentation on Android PlayerSettings. By default, this property uses the highest level you have installed. Target API Level should be set to API level 21 or higher for Cardboard and Daydream. To do this in the Player Settings, navigate to Other Settings and under Identification use the Minimum API Level drop-down to set it to the latest API in the list. To ensure Unity uses the correct APK, and only runs on devices upgraded to the latest version of Android, you need to change the Minimum API Level. The minimum platform requirement for Daydream is Android 7.0 Lollipop (API level 21). This reduces performance to improve battery life. Set the background icon for presentation in the VR Google Play store.Įnable Sustained Performance Mode for longer VR experiences. Set the foreground icon for presentation in the VR Google Play store. This is used for sorting the visible data and determining what is actually rendered to the screen.
Use this drop-down to set the Z buffer depth. Select the drop-down arrow next to it to expand the Daydream settings. This then appears in the Virtual Reality SDKs list.
Select the plus ( +) icon at the bottom of the list.įrom the drop-down, select Daydream. Open Other Settings, and under the Rendering section, tick the Virtual Reality Supported checkbox.Ī list called Virtual Reality SDKs appears. In the main menu, go to Edit > Project Settings > Player.Ĭlick the Android logo to apply settings for building to Android (Box 1 in figure below). Configuring Unity for Daydream development
See Google’s documentation on Daydream hardware to learn how to set your Android phone up for Daydream development.
If you don’t already have Lollipop, download it from the Google Android developer site. Getting startedĭaydream’s minimum system requirement is Android API SDK version 21 (also known as “Lollipop”). This page provides a step-by-step guide to configuring Unity for Daydream development, and provides information on what you need to be aware of while developing for Daydream. See Google’s Daydream documentation for more information about this.
Daydream for Unity is a technical preview designed to give Unity developers early access to Google VR development. Google VR applications are developed using Daydream. See Google’s VR documentation for more information about the requirements and functionality of each. Google VR encompasses both Daydream and Cardboard, two VR platforms owned by Google.