November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

GvrCardboardHelpers

General Cardboard helper methods.

Summary

Public static functions

Recenter()
void
Manual recenter for Cardboard apps.
SetViewerProfile(String viewerProfileUri)
void
Set the Cardboard viewer params.

Public static functions

Recenter

void Recenter()

Manual recenter for Cardboard apps.

After recentering the camera's orientation will be given in the new recentered coordinate system.

Do not use for Daydream apps as controller based recentering is handled automatically by Google VR Services. GvrControllerInput::recentered for details.

SetViewerProfile

void SetViewerProfile(
  String viewerProfileUri
)

Set the Cardboard viewer params.

Example URI for 2015 Cardboard Viewer V2: "http://google.com/cardboard/cfg?p=CgZHb29nbGUSEkNhcmRib2FyZCBJL08gMjAxNR0rGBU9JQHegj0qEAAASEIAAEhCAABIQgAASEJYADUpXA89OggeZnc-Ej6aPlAAYAM".

Details
Parameters
viewerProfileUri
The URI to a cardboard viewer profile.