docs.unity3d.com
    Show / Hide Table of Contents

    Class MetaHandTrackingAim

    This enables the use of Meta's hand-tracking aim data in OpenXR. It will not work without also enabling the HandTracking feature. It enables XR_FB_hand_tracking_aim in the underlying runtime. This creates new InputDevices with the HandTracking characteristic where the devicePosition and deviceRotation represent the aim pose exposed by this extension.

    Inheritance
    Object
    MetaHandTrackingAim
    Namespace: UnityEngine.XR.Hands.OpenXR
    Syntax
    public class MetaHandTrackingAim : OpenXRFeature
    Remarks

    For this extension to be available, you must install the XR Hands package.

    Fields

    extensionString

    The OpenXR Extension string. OpenXR uses this to check if this extension is available or enabled. See Meta hand-tracking aim documentation for more information on this OpenXR extension.

    Declaration
    public const string extensionString = "XR_FB_hand_tracking_aim"
    Field Value
    Type Description
    String

    featureId

    The feature ID string. This is used to give the feature a well known ID for reference.

    Declaration
    public const string featureId = "com.unity.openxr.feature.input.metahandtrackingaim"
    Field Value
    Type Description
    String

    Properties

    leftHand

    (Deprecated) The left-hand InputDevice that contains InputControls that surface data in the Meta Hand Tracking Aim extension.

    Declaration
    [Obsolete("Use MetaAimHand.left instead. (UnityUpgradable) -> UnityEngine.XR.Hands.MetaAimHand.left", true)]
    public static MetaHandTrackingAim.MetaAimHand leftHand { get; }
    Property Value
    Type Description
    MetaHandTrackingAim.MetaAimHand

    rightHand

    (Deprecated) The right-hand InputDevice that contains InputControls that surface data in the Meta Hand Tracking Aim extension.

    Declaration
    [Obsolete("Use MetaAimHand.right instead. (UnityUpgradable) -> UnityEngine.XR.Hands.MetaAimHand.right", true)]
    public static MetaHandTrackingAim.MetaAimHand rightHand { get; }
    Property Value
    Type Description
    MetaHandTrackingAim.MetaAimHand

    Methods

    OnSubsystemStart()

    See .

    Declaration
    protected override void OnSubsystemStart()

    OnSubsystemStop()

    See .

    Declaration
    protected override void OnSubsystemStop()
    In This Article
    • Fields
      • extensionString
      • featureId
    • Properties
      • leftHand
      • rightHand
    • Methods
      • OnSubsystemStart()
      • OnSubsystemStop()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023