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.
Stay organized with collections Save and categorize content based on your preferences.

GvrTrackedController

Represents an object tracked by controller input.

Summary

Manages the active status of the tracked controller based on controller connection status.

Fetches a GvrControllerInputDevice for the configured GvrControllerHand and propagates the device instance to all IGvrControllerInputDeviceReceivers underneath this object on Start and if the controller handedness changes. If the controller is not positionally tracked, position of the object is updated to approximate arm mechanics by using a GvrBaseArmModel. GvrBaseArmModels are also propagated to all IGvrArmModelReceivers underneath this object.

Inheritance

Inherits from: MonoBehaviour

Properties

ArmModel
Gets or sets an arm model.
ControllerHand
GvrControllerHand
Gets or sets the controller hand used for this tracked object.
ControllerInputDevice
Gets the controller input device for this tracked object.
IsDeactivatedWhenDisconnected
bool
Gets or sets a value indicating whether the object's active status is determined by the controller connection status.

Public functions

PropagateArmModel()
void
Propagates the arm model to all IGvrArmModelReceivers.

Properties

ArmModel

GvrBaseArmModel ArmModel

Gets or sets an arm model.

Used to control the pose (position and rotation) of the object and to propagate to children that implement IGvrArmModelReceiver.

An arm model used to control the pose (position and rotation) of the object, and to propagate to children that implement IGvrArmModelReceiver.

ControllerHand

GvrControllerHand ControllerHand

Gets or sets the controller hand used for this tracked object.

The controller hand used for this tracked object.

ControllerInputDevice

GvrControllerInputDevice ControllerInputDevice

Gets the controller input device for this tracked object.

The controller input device for this tracked object.

IsDeactivatedWhenDisconnected

bool IsDeactivatedWhenDisconnected

Gets or sets a value indicating whether the object's active status is determined by the controller connection status.

Value true if the object's active status is determined by the controller connection status, false otherwise.

Public functions

PropagateArmModel

void PropagateArmModel()

Propagates the arm model to all IGvrArmModelReceivers.

Should only called when ArmModel is instantiated or changed.