Class MicrosoftHandInteraction
This OpenXRInteractionFeature enables the use of Microsoft hand 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
Assembly: Unity.XR.OpenXR.dll
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
GetDeviceLayoutName()
Return device layout string that used for registering device for the Input System.
Declaration
protected override string GetDeviceLayoutName()
Returns
Type | Description |
---|---|
string | Device layout string. |
Overrides
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()