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.

GvrControllerReticleVisual.FaceCameraData

Camera facing positioning data.

Summary

These are parameters for restricting recenters along given euler angle axes.

Constructors and Destructors

FaceCameraData(bool startEnabled)
Initializes a new instance of the FaceCameraData struct.

Public attributes

alongXAxis
bool
Value true if aligned on X axis.
alongYAxis
bool
Value true if aligned on Y axis.
alongZAxis
bool
Value true if aligned on Z axis.

Properties

IsAnyAxisOff
bool
Gets a value indicating whether any axis is off.

Public attributes

alongXAxis

bool GvrControllerReticleVisual::FaceCameraData::alongXAxis

Value true if aligned on X axis.

If true, the eulerAngle.x is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.x is determined by relative look-positon from the Camera.

alongYAxis

bool GvrControllerReticleVisual::FaceCameraData::alongYAxis

Value true if aligned on Y axis.

If true, the eulerAngle.y is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.y is determined by relative look-positon from the Camera.

alongZAxis

bool GvrControllerReticleVisual::FaceCameraData::alongZAxis

Value true if aligned on Z axis.

If true, the eulerAngle.z is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.z is determined by relative look-positon from the Camera.

Properties

IsAnyAxisOff

bool GvrControllerReticleVisual::FaceCameraData::IsAnyAxisOff

Gets a value indicating whether any axis is off.

Value false if along any axis, true otherwise.

Public functions

FaceCameraData

 GvrControllerReticleVisual::FaceCameraData::FaceCameraData(
  bool startEnabled
)

Initializes a new instance of the FaceCameraData struct.

Details
Parameters
startEnabled
Whether the axes should start enabled.