API reference
API reference
Select your platform
No SDKs available
No versions available

HandPointerPose Class

Extends MonoBehaviour, IActiveState
Sets the origin of the ray used by RayInteractors for tracked hands.
RayInteractors themselves are agnostic to the origin of the ray, so they can work with any ray but cannot calculate that ray for themselves. HandPointerPose observes an IHand and uses it to compute a ray origin.

Properties

The IHand used for ray interaction.
This value is typically set in the UnityEditor, but it can also be set programmatically during initialization using either InjectAllHandPointerPose(IHand, Vector3) or InjectHand(IHand).

Fields

Implements IActiveState.Active, in this case indicating whether or not a valid ray origin is currently available.

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Sets all required dependencies for a dynamically instantiated HandPointerPose.
This is a convenience method wrapping InjectHand(IHand) and InjectOffset(Vector3). This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the an IHand as the Hand for a dynamically instantiated HandPointerPose.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets a Unity Vector3 as the ray origin offset for a dynamically instantiated HandPointerPose.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon