Class HandTracking
This OpenXRInteractionFeature enables the use of
hand-tracking data in OpenXR through the XRHand
Namespace: UnityEngine .XR.Hands.OpenXR
Assembly: Unity.XR.Hands.dll
Syntax
public class HandTracking : 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 hand interaction extension documentation for more information on this OpenXR extension.
Declaration
public const string extensionString = "XR_EXT_hand_tracking"
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.handtracking"
Field Value
Type | Description |
---|---|
string |
Properties
subsystem
The XRHand
Declaration
public static XRHandSubsystem subsystem { get; }
Property Value
Type | Description |
---|---|
XRHand |
Methods
GetValidationChecks(List<ValidationRule>, BuildTargetGroup)
Declaration
protected override void GetValidationChecks(List<ValidationRule> results, BuildTargetGroup targetGroup)
Parameters
Type | Name | Description |
---|---|---|
List<Validation |
results | |
Build |
targetGroup |
HookGetInstanceProcAddr(IntPtr)
Declaration
protected override IntPtr HookGetInstanceProcAddr(IntPtr func)
Parameters
Type | Name | Description |
---|---|---|
Int |
func |
Returns
Type | Description |
---|---|
Int |
OnAppSpaceChange(ulong)
See OpenXRFeature.OnAppSpaceChange(ulong).
Declaration
protected override void OnAppSpaceChange(ulong xrSpace)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSpace |
OnInstanceCreate(ulong)
See OpenXRFeature.OnInstanceCreate(ulong).
Declaration
protected override bool OnInstanceCreate(ulong xrInstance)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrInstance |
Returns
Type | Description |
---|---|
bool |
OnInstanceDestroy(ulong)
See OpenXRFeature.OnInstanceDestroy(ulong).
Declaration
protected override void OnInstanceDestroy(ulong xrInstance)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrInstance |
OnInstanceLossPending(ulong)
See OpenXRFeature.OnInstanceLossPending(ulong).
Declaration
protected override void OnInstanceLossPending(ulong xrInstance)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrInstance |
OnSessionCreate(ulong)
Called after xrCreateSession.
Declaration
protected override void OnSessionCreate(ulong xrSession)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSession |
Remarks
Creates an XRHand
OnSessionDestroy(ulong)
See OpenXRFeature.OnAppSpaceChange(ulong).
Declaration
protected override void OnSessionDestroy(ulong xrSpace)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSpace |
OnSubsystemDestroy()
Called before the OpenXR loader destroys its subsystems.
Declaration
protected override void OnSubsystemDestroy()
Remarks
Destroys the XRHand
OnSubsystemStart()
Called after the OpenXR loader has started its subsystems.
Declaration
protected override void OnSubsystemStart()
Remarks
Starts the XRHand
OnSubsystemStop()
Called before the OpenXR loader stops its subsystems.
Declaration
protected override void OnSubsystemStop()
Remarks
Stops the XRHand
OnSystemChange(ulong)
See OpenXRFeature.OnSystemChange(ulong).
Declaration
protected override void OnSystemChange(ulong xrSystem)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrSystem |