Class OpenXRHandProvider
Hand tracking provider for the OpenXR platform.
Inherited Members
Namespace: UnityEngine .XR.Hands.OpenXR
Assembly: Unity.XR.Hands.dll
Syntax
public class OpenXRHandProvider : XRHandSubsystemProvider
Methods
Destroy()
See Unity
Declaration
public override void Destroy()
Overrides
GetHandLayout(NativeArray<bool>)
Gets the layout of hand joints for this provider, by having the
provider mark each index corresponding to a XRHand
Declaration
public override void GetHandLayout(NativeArray<bool> handJointsInLayout)
Parameters
Type | Name | Description |
---|---|---|
Native |
handJointsInLayout | Each index corresponds to a XRHand |
Overrides
Remarks
Called once on creation so that before the subsystem is even started,
the user can immediately create a valid hierarchical structure as
soon as they get a reference to the subsystem without even needing to
start it. This is called before any call to
Get
Start()
See Unity
Declaration
public override void Start()
Overrides
Stop()
See Unity
Declaration
public override void Stop()
Overrides
TryUpdateHands(UpdateType, ref Pose, NativeArray<XRHandJoint>, ref Pose, NativeArray<XRHandJoint>)
Attempts to retrieve current hand-tracking data from the provider.
Declaration
public override XRHandSubsystem.UpdateSuccessFlags TryUpdateHands(XRHandSubsystem.UpdateType updateType, ref Pose leftHandRootPose, NativeArray<XRHandJoint> leftHandJoints, ref Pose rightHandRootPose, NativeArray<XRHandJoint> rightHandJoints)
Parameters
Type | Name | Description |
---|---|---|
XRHand |
updateType | Informs the provider which kind of timing the update is being requested under. |
Pose | leftHandRootPose | Update this and include |
Native |
leftHandJoints | Array of hand joints to fill out for the left hand. These are
initialized with a copy of the current joint data for the left hand,
so if the last known tracking data for a particular joint is still
fine, you don't need to fill out that data again. If you update
these, include |
Pose | rightHandRootPose | Update this and include |
Native |
rightHandJoints | Array of hand joints to fill out for the right hand. These are
initialized with a copy of the current joint data for the right hand,
so if the last known tracking data for a particular joint is still
fine, you don't need to fill out that data again. If you update
these, include |
Returns
Type | Description |
---|---|
XRHand |
Returns XRHand |