Class HandTracking
This OpenXRInteractionFeature enables the use of hand-tracking data in OpenXR through the XRHandSubsystem. It enables XR_EXT_hand_tracking in the underlying runtime. To retrieve hand data, use the XRHandSubsystem retrieved from subsystem.
Namespace: UnityEngine.XR.Hands.OpenXR
Assembly: solution.dll
Syntax
public class HandTracking : OpenXRFeature
Remarks
For this extension to be available, you must install the XR Hands package.
Fields
| Name | Description |
|---|---|
| extensionString | The OpenXR Extension string. OpenXR uses this to check if this extension is available or enabled. See hand interaction extension documentation for more information on this OpenXR extension. |
| featureId | The feature ID string. This is used to give the feature a well known ID for reference. |
Properties
| Name | Description |
|---|---|
| subsystem | The XRHandSubsystem that retrieves hand data from its provider. Will only be valid when this feature is enabled and running. To subscribe to updates, use handsUpdated. |
Methods
| Name | Description |
|---|---|
| HookGetInstanceProcAddr(IntPtr) | |
| OnAppSpaceChange(ulong) | See OpenXRFeature.OnAppSpaceChange(ulong). |
| OnInstanceCreate(ulong) | See OpenXRFeature.OnInstanceCreate(ulong). |
| OnInstanceDestroy(ulong) | See OpenXRFeature.OnInstanceDestroy(ulong). |
| OnInstanceLossPending(ulong) | See OpenXRFeature.OnInstanceLossPending(ulong). |
| OnSessionCreate(ulong) | Called after xrCreateSession. |
| OnSessionDestroy(ulong) | See OpenXRFeature.OnAppSpaceChange(ulong). |
| OnSubsystemDestroy() | Called before the OpenXR loader destroys its subsystems. |
| OnSubsystemStart() | Called after the OpenXR loader has started its subsystems. |
| OnSubsystemStop() | Called before the OpenXR loader stops its subsystems. |
| OnSystemChange(ulong) | See OpenXRFeature.OnSystemChange(ulong). |