HandTracker.TryLocateHandJoints(FrameTime, HandJointLocation[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fills the passed-in array with current hand joint locations, if possible.
public bool TryLocateHandJoints (Microsoft.MixedReality.OpenXR.FrameTime frameTime, Microsoft.MixedReality.OpenXR.HandJointLocation[] handJointLocations);
member this.TryLocateHandJoints : Microsoft.MixedReality.OpenXR.FrameTime * Microsoft.MixedReality.OpenXR.HandJointLocation[] -> bool
Public Function TryLocateHandJoints (frameTime As FrameTime, handJointLocations As HandJointLocation()) As Boolean
Parameters
- handJointLocations
- HandJointLocation[]
An array of HandJointLocations, indexed according to the HandJoint enum.
Returns
Returns true when the hand tracker is actively tracking the hands. Returns false when the hand tracker is disabled or it's not properly set up.
Remarks
The return value matches the XrHandTrackingDataSourceStateEXT::isActive value in XR_EXT_hand_tracking_data_source extension. It returns true if the extension is not supported by OpenXR runtime because Unity cannot observe the hand tracker active state.