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 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 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
prefab, specifically the
VideoPlayerReference script and the associated
GvrVideoPlayerTexture script. Examples can be found on the
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 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
PermissionsDemo scene does not work in the Unity editor; you must build and run
it on an Android device to see it in action.
ScrollingUIDemo demonstrates paginated scrolling controlled by swipes on the
Daydream controller touchpad. The swipe behavior is located in
which interacts with the various Canvas > Tabs game objects in the scene.