Class MetaHandTrackingAim.MetaAimHand
(Deprecated) A UnityEngine.InputSystem.TrackedDevice based off the data exposed in the Meta Hand Tracking Aim extension. Use MetaHandTrackingAim.MetaAimHand instead of MetaHandTrackingAim.MetaAimHand.
Inherited Members
Namespace: UnityEngine.XR.Hands.OpenXR
Assembly: Unity.XR.Hands.dll
Syntax
[Preserve]
[Obsolete("Use the UnityEngine.XR.Hands.MetaAimHand instead. (UnityUpgradable) -> UnityEngine.XR.Hands.MetaAimHand", true)]
public class MetaHandTrackingAim.MetaAimHand : TrackedDevice
Fields
pressThreshold
The pinch amount required to register as being pressed for the purposes of indexPressed, middlePressed, ringPressed, and littlePressed.
Declaration
public const float pressThreshold = 0.8
Field Value
Type | Description |
---|---|
float |
Properties
aimFlags
(Deprecated) Cast the result of reading this to MetaAimFlags to examine the value. Use MetaHandTrackingAim.MetaAimHand instead of MetaHandTrackingAim.MetaAimHand.
Declaration
[Preserve]
public IntegerControl aimFlags { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
indexPressed
A ButtonControl
that represents whether the pinch between the index finger and
the thumb is mostly pressed (greater than a threshold of 0.8
contained in pressThreshold).
Declaration
[Preserve]
public ButtonControl indexPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
littlePressed
A ButtonControl
that represents whether the pinch between the little finger and
the thumb is mostly pressed (greater than a threshold of 0.8
contained in pressThreshold).
Declaration
[Preserve]
public ButtonControl littlePressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
middlePressed
A ButtonControl
that represents whether the pinch between the middle finger and
the thumb is mostly pressed (greater than a threshold of 0.8
contained in pressThreshold).
Declaration
[Preserve]
public ButtonControl middlePressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
pinchStrengthIndex
An AxisControl that represents the pinch strength between the index finger and the thumb.
Declaration
[Preserve]
public AxisControl pinchStrengthIndex { get; }
Property Value
Type | Description |
---|---|
AxisControl |
Remarks
A value of 0
denotes no pinch at all, while a value of
1
denotes a full pinch.
pinchStrengthLittle
An AxisControl that represents the pinch strength between the little finger and the thumb.
Declaration
[Preserve]
public AxisControl pinchStrengthLittle { get; }
Property Value
Type | Description |
---|---|
AxisControl |
Remarks
A value of 0
denotes no pinch at all, while a value of
1
denotes a full pinch.
pinchStrengthMiddle
An AxisControl that represents the pinch strength between the middle finger and the thumb.
Declaration
[Preserve]
public AxisControl pinchStrengthMiddle { get; }
Property Value
Type | Description |
---|---|
AxisControl |
Remarks
A value of 0
denotes no pinch at all, while a value of
1
denotes a full pinch.
pinchStrengthRing
An AxisControl that represents the pinch strength between the ring finger and the thumb.
Declaration
[Preserve]
public AxisControl pinchStrengthRing { get; }
Property Value
Type | Description |
---|---|
AxisControl |
Remarks
A value of 0
denotes no pinch at all, while a value of
1
denotes a full pinch.
ringPressed
A ButtonControl
that represents whether the pinch between the ring finger and
the thumb is mostly pressed (greater than a threshold of 0.8
contained in pressThreshold).
Declaration
[Preserve]
public ButtonControl ringPressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup()
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()