docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    InputControl
    InputDevice
    TrackedDevice
    MetaHandTrackingAim.MetaAimHand
    Inherited Members
    TrackedDevice.trackingState
    TrackedDevice.isTracked
    TrackedDevice.devicePosition
    TrackedDevice.deviceRotation
    InputDevice.InvalidDeviceId
    InputDevice.description
    InputDevice.enabled
    InputDevice.canRunInBackground
    InputDevice.added
    InputDevice.remote
    InputDevice.native
    InputDevice.updateBeforeRender
    InputDevice.deviceId
    InputDevice.lastUpdateTime
    InputDevice.wasUpdatedThisFrame
    InputDevice.allControls
    InputDevice.valueType
    InputDevice.valueSizeInBytes
    InputDevice.all
    InputDevice.ReadValueFromBufferAsObject(void*, int)
    InputDevice.ReadValueFromStateAsObject(void*)
    InputDevice.ReadValueFromStateIntoBuffer(void*, void*, int)
    InputDevice.CompareValue(void*, void*)
    InputDevice.MakeCurrent()
    InputDevice.OnAdded()
    InputDevice.OnRemoved()
    InputDevice.OnConfigurationChanged()
    InputDevice.ExecuteCommand<TCommand>(ref TCommand)
    InputDevice.ExecuteCommand(InputDeviceCommand*)
    InputControl.name
    InputControl.displayName
    InputControl.shortDisplayName
    InputControl.path
    InputControl.layout
    InputControl.variants
    InputControl.device
    InputControl.parent
    InputControl.children
    InputControl.usages
    InputControl.aliases
    InputControl.stateBlock
    InputControl.noisy
    InputControl.synthetic
    InputControl.this[string]
    InputControl.magnitude
    InputControl.ToString()
    InputControl.EvaluateMagnitude()
    InputControl.EvaluateMagnitude(void*)
    InputControl.WriteValueFromBufferIntoState(void*, int, void*)
    InputControl.WriteValueFromObjectIntoState(object, void*)
    InputControl.TryGetChildControl(string)
    InputControl.TryGetChildControl<TControl>(string)
    InputControl.GetChildControl(string)
    InputControl.GetChildControl<TControl>(string)
    InputControl.RefreshConfigurationIfNeeded()
    InputControl.RefreshConfiguration()
    InputControl.m_StateBlock
    InputControl.currentStatePtr
    InputControl.previousFrameStatePtr
    InputControl.defaultStatePtr
    InputControl.noiseMaskPtr
    InputControl.stateOffsetRelativeToDeviceRoot
    InputControl.optimizedControlDataType
    InputControl.CalculateOptimizedControlDataType()
    InputControl.ApplyParameterChanges()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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()
    Overrides
    UnityEngine.InputSystem.TrackedDevice.FinishSetup()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)