Class XRHandRelativeOrientation.TargetCondition
A condition that can be used to check the orientation of a hand relative to some other target. The target is another transform referenced by the target property.
Inherited Members
Namespace: UnityEngine .XR.Hands.Gestures
Assembly: Unity.XR.Hands.dll
Syntax
[Serializable]
public class XRHandRelativeOrientation.TargetCondition
Remarks
To check the orientation relative to the user's head or origin, use UserOrientation to avoid the need to set a specific target transform per condition.
Properties
alignmentCondition
The XRHand
Declaration
public XRHandAlignmentCondition alignmentCondition { get; set; }
Property Value
Type | Description |
---|---|
XRHand |
angleTolerance
If the alignment
If the alignment
If the alignment
Declaration
public float angleTolerance { get; set; }
Property Value
Type | Description |
---|---|
float |
handAxis
The XRHand
Declaration
public XRHandAxis handAxis { get; set; }
Property Value
Type | Description |
---|---|
XRHand |
ignorePositionY
If enabled, the Y position will be ignored when referencing a direction relative to another position.
Declaration
public bool ignorePositionY { get; set; }
Property Value
Type | Description |
---|---|
bool |
referenceDirection
The XRHand
Declaration
public XRHandTargetRelativeDirection referenceDirection { get; set; }
Property Value
Type | Description |
---|---|
XRHand |