Class XRHandPose
Description of a hand pose, which is XRHandShape and XRHandRelativeOrientation.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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 XRHandShape required for this hand pose.
Declaration
public XRHandShape handShape { get; set; }
Property Value
Type | Description |
---|---|
XRHandShape |
relativeOrientation
The XRHandRelativeOrientation required for this hand pose.
Declaration
public XRHandRelativeOrientation relativeOrientation { get; set; }
Property Value
Type | Description |
---|---|
XRHandRelativeOrientation |
Methods
CheckConditions(XRHandJointsUpdatedEventArgs)
Check the hand shape against the given updated hand joint data.
Declaration
public bool CheckConditions(XRHandJointsUpdatedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
XRHandJointsUpdatedEventArgs | 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.