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.

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.