Class XRHandPose
Description of a hand pose, which is XRHand
Inherited Members
Namespace: UnityEngine .XR.Hands.Gestures
Assembly: Unity.XR.Hands.dll
Syntax
[CreateAssetMenu(fileName = "New Hand Pose", menuName = "XR/Hand Interactions/Hand Pose")]
public class XRHandPose : ScriptableObject
Properties
handShape
The XRHand
Declaration
public XRHandShape handShape { get; set; }
Property Value
Type | Description |
---|---|
XRHand |
relativeOrientation
The XRHand
Declaration
public XRHandRelativeOrientation relativeOrientation { get; set; }
Property Value
Type | Description |
---|---|
XRHand |
Methods
CheckConditions(XRHandJointsUpdatedEventArgs)
Check the hand shape against the given updated hand joint data.
Declaration
public bool CheckConditions(XRHandJointsUpdatedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
XRHand |
eventArgs | The hand joints updated event arguments to reference for the latest hand. |
Returns
Type | Description |
---|---|
bool | Returns true if all the finger shape conditions are met. Otherwise, returns false if any condition is not met. |
Remarks
The check will end early if the hand is not tracked or after the first finger shape condition is found to be false. The order of the conditions will determine the order they are checked.