Class MetaHandTrackingAim
This OpenXRInteractionFeature 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 UnityEngine.InputSystem.TrackedDevice.devicePosition and UnityEngine.InputSystem.TrackedDevice.deviceRotation represent the aim pose exposed by this extension.
Namespace: UnityEngine.XR.Hands.OpenXR
Assembly: Unity.XR.Hands.dll
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 UnityEngine.InputSystem.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 UnityEngine.InputSystem.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 OpenXRFeature.OnSubsystemStart.
Declaration
protected override void OnSubsystemStart()
OnSubsystemStop()
See OpenXRFeature.OnSubsystemStop.
Declaration
protected override void OnSubsystemStop()