Class XRHandTrackingEvents
Component that subscribes to hand tracking events from the XRHandSubsystem for a particular Handedness and sends UnityEvents for tracking updates.
Inherited Members
Namespace: UnityEngine.XR.Hands
Assembly: solution.dll
Syntax
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.hands@1.4/api/UnityEngine.XR.Hands.XRHandTrackingEvents.html")]
public class XRHandTrackingEvents : MonoBehaviour
Properties
Name | Description |
---|---|
bindableHandIsTracked | Whether the hand is currently being tracked, stored as a bindable variable that can be subscribed to for value changes. |
handIsTracked | Whether the hand is currently being tracked |
handedness | The hand to track and send events for. |
jointsUpdated | Event that occurs when the joints of the hands have updated. |
poseUpdated | Event that occurs when the pose of the hands has updated. |
rootPose | The root pose of the hand. |
trackingAcquired | Event that occurs when the hand tracking is acquired. |
trackingChanged | Event that occurs when the hand tracking is acquired (true) or lost (false). |
trackingLost | Event that occurs when the hand tracking is lost. |
updateType | Which update type to send events for when the pose and joints are updated. This can be one or multiple options from XRHandSubsystem.UpdateType. |
Methods
Name | Description |
---|---|
OnDisable() | See MonoBehaviour. |
Update() | See MonoBehaviour. |