Share via


HandTracker.TryLocateHandJoints(FrameTime, HandJointLocation[]) Method

Definition

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

frameTime
FrameTime

Specify the FrameTime to locate the hand joints.

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.

Applies to