Unity Demo Scenes

The Google VR SDK for Unity includes some demo scenes in the /Assets/GoogleVR/Demos/Scenes directory which show simple apps and use cases. This page briefly describes each of the demos.

GVRDemo

GVRDemo is a simple game where you find and select a block within a 3D scene. It works as either a Daydream or Cardboard application, depending on the Virtual Reality SDK selected under Player Settings. If Daydream is selected, the controller is used for input. If Cardboard is selected, the demo uses gaze-based input.

VideoDemo

VideoDemo shows various ways to use stereo or 360º video through local playback or remote streaming. It works as either a Daydream or Cardboard application, depending on the Virtual Reality SDK selected under Player Settings. Most of the implementation details are part of the VideoControls prefab, specifically the VideoPlayerReference script and the associated GvrVideoPlayerTexture script. Examples can be found on the obbVideoSample, panoVideoSample, and dashVideoSample game objects. To run the VideoDemo scene, you must also import the GVRVideoPlayer Unity package, located in Assets/GoogleVR. The VideoDemo scene does not work in the Unity editor; you must build and run it on an Android device to see it in action.

PermissionsDemo

PermissionsDemo is a Daydream app showing a correct user flow for requesting permissions. If you are interested in implementing this flow, look at Assets/GoogleVR/Demos/Scripts/Permissions/Permissions/FlowManager.cs and its use of Assets/GoogleVR/Scripts/Permissions/GvrPermissionsRequester.cs. The PermissionsDemo scene does not work in the Unity editor; you must build and run it on an Android device to see it in action.