This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.

Recentering for Daydream apps in Unity

Stay organized with collections Save and categorize content based on your preferences.

Orientation and movement types

Daydream apps usually have one of the following types of visual orientation:

  • Natural forward direction Example: Daydream Home environment that you see when you press the home button.

  • Visual exploration in any direction (360° experience apps) Example: An open environment that lets you point your gaze in any direction.

Default recentering behavior reorients the Daydream controller and the user's visual orientation in VR. Controller recentering is useful in either type of app. However, 360° experience apps must preserve the user's orientation on recenter.

Default recentering behavior

Default recentering behavior is designed for apps with a natural forward direction. It lets users reorient themselves in VR and compensate for certain types of sensor drift.

Users can long-press the Daydream controller "home" button to:

  • Reorient the controller so that it points directly in front of the user.

  • Reorient the virtual camera so that the scene's natural forward direction is directly in front of the user.

360° experience apps

Controller recentering should be provided in every Daydream app. However, apps with a 360° environment and no natural forward direction must preserve the user's visual orientation on recentering design requirement UX-D6

To prevent headset re-centering in 360˚ experience apps, add the GvrRecenterOnlyController script to a game object in your scene. This script counteracts the built-in rotation adjustment by making an equal and opposite adjustment to the Daydream pointer and the parent of the camera. Apps with a natural forward direction should not use this script.

Developers of 360˚ experience apps can also use the ReorientOnLoad script to orient the user correctly on entering a scene regardless of their previous orientation.