Class XRHandRelativeOrientation
Defines hand orientation relative to the user and a target Transform
.
Inherited Members
Namespace: UnityEngine.XR.Hands.Gestures
Assembly: Unity.XR.Hands.dll
Syntax
[Serializable]
public class XRHandRelativeOrientation
Properties
targetConditions
The list of conditions to check for the hand's orientation, relative to a target Transform
.
Declaration
public XRHandRelativeOrientation.TargetCondition[] targetConditions { get; set; }
Property Value
Type | Description |
---|---|
TargetCondition[] |
Remarks
All of these conditions use targetTransform.
targetTransform
The target transform that the targetConditions are relative to.
Declaration
public Transform targetTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Remarks
This is not used for userConditions.
userConditions
The list of conditions to check for the hand's orientation, relative to the user.
Declaration
public XRHandRelativeOrientation.UserCondition[] userConditions { get; set; }
Property Value
Type | Description |
---|---|
UserCondition[] |
Methods
CheckConditions(Pose, Handedness)
Checks the hand orientation conditions to determine whether the hand is in the correct orientation.
Declaration
public bool CheckConditions(Pose rootPose, Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Pose | rootPose | The root pose of the hand. |
Handedness | handedness | The handedness of the hand. |
Returns
Type | Description |
---|---|
bool | Whether all the conditions are met. |