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.