Class ViveHandInteraction
This UnityEngine.XR.OpenXR.Features.OpenXRInteractionFeature enables the use of hand interaction profiles in OpenXR. It enables XR_HTC_hand_interaction in the underyling runtime.
Inheritance
Inherited Members
Namespace: VIVE.OpenXR.Hand
Assembly: VIVE.OpenXR.dll
Syntax
public class ViveHandInteraction : OpenXRInteractionFeature
Fields
devicePose
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 devicePose = "/input/grip/pose"
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 = "vive.openxr.feature.hand.interaction"
Field Value
Type | Description |
---|---|
string |
gripValue
Constant for a float interaction binding '.../input/squeeze/value' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.
Declaration
public const string gripValue = "/input/squeeze/value"
Field Value
Type | Description |
---|---|
string |
kOpenxrExtensionString
OpenXR specification 12.69. XR_HTC_hand_interaction.
Declaration
public const string kOpenxrExtensionString = "XR_HTC_hand_interaction"
Field Value
Type | Description |
---|---|
string |
pointerPose
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 pointerPose = "/input/aim/pose"
Field Value
Type | Description |
---|---|
string |
selectValue
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 selectValue = "/input/select/value"
Field Value
Type | Description |
---|---|
string |
Methods
OnInstanceCreate(ulong)
Called when xrCreateInstance is done.
Declaration
protected override bool OnInstanceCreate(ulong xrInstance)
Parameters
Type | Name | Description |
---|---|---|
ulong | xrInstance | The created instance. |
Returns
Type | Description |
---|---|
bool | True for valid XrInstance |
Overrides
RegisterActionMapsWithRuntime()
Registers action maps to Unity XR.
Declaration
protected override void RegisterActionMapsWithRuntime()
Overrides
RegisterDeviceLayout()
Registers the ViveHandInteraction.HandInteractionDevice layout with the Input System.
Declaration
protected override void RegisterDeviceLayout()
Overrides
UnregisterDeviceLayout()
Removes the ViveHandInteraction.HandInteractionDevice layout from the Input System.
Declaration
protected override void UnregisterDeviceLayout()