Class MicrosoftHandInteraction
This OpenXRInteractionFeature enables the use of eye gaze interaction profiles in OpenXR. It enables XR_MSFT_hand_interaction in the underyling runtime. This creates a new InputDevice with the HandTracking characteristic.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Interactions
Syntax
public class MicrosoftHandInteraction : OpenXRInteractionFeature
Fields
aim
Constant for a pose interaction binding '.../input/aim/pose' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.
Declaration
public const string aim = "/input/aim/pose"
Field Value
Type | Description |
---|---|
String |
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_MSFT_hand_interaction"
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 |
grip
Constant for a pose interaction binding '.../input/grip/pose' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.
Declaration
public const string grip = "/input/grip/pose"
Field Value
Type | Description |
---|---|
String |
profile
OpenXR string that represents the hand interaction profile.
Declaration
public const string profile = "/interaction_profiles/microsoft/hand_interaction"
Field Value
Type | Description |
---|---|
String |
select
Constant for a float interaction binding '.../input/select/value' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.
Declaration
public const string select = "/input/select/value"
Field Value
Type | Description |
---|---|
String |
squeeze
Constant for a float interaction binding '.../input/menu/value' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.
Declaration
public const string squeeze = "/input/squeeze/value"
Field Value
Type | Description |
---|---|
String |
Methods
RegisterActionMapsWithRuntime()
Register action maps for this device with the OpenXR Runtime. Called at runtime before Start.
Declaration
protected override void RegisterActionMapsWithRuntime()
Overrides
RegisterDeviceLayout()
Registers the MicrosoftHandInteraction.HoloLensHand layout with the Input System.
Declaration
protected override void RegisterDeviceLayout()
Overrides
UnregisterDeviceLayout()
Removes the MicrosoftHandInteraction.HoloLensHand layout from the Input System.
Declaration
protected override void UnregisterDeviceLayout()