Class HandInteractionProfileMicrogestures.HandInteractionMicrogestures
An Input System device that exposes the microgesture controls for one hand.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Interactions
Assembly: Unity.XR.OpenXR.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "Hand Interaction Microgestures (OpenXR)", commonUsages = new string[] { "LeftHand", "RightHand" })]
public class HandInteractionProfileMicrogestures.HandInteractionMicrogestures : OpenXRDevice
Remarks
Unity creates one device for each hand and assigns it the LeftHand or RightHand usage. To bind a control for one hand, use a path such as <HandInteractionMicrogestures>/tapThumb.
Properties
swipeBackward
A ButtonControl that represents the swipeBackward OpenXR binding.
Declaration
[Preserve]
[InputControl]
public ButtonControl swipeBackward { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Remarks
The OpenXR input is true when the runtime recognizes a swipe backward microgesture.
swipeForward
A ButtonControl that represents the swipeForward OpenXR binding.
Declaration
[Preserve]
[InputControl]
public ButtonControl swipeForward { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Remarks
The OpenXR input is true when the runtime recognizes a swipe forward microgesture.
swipeLeft
A ButtonControl that represents the swipeLeft OpenXR binding.
Declaration
[Preserve]
[InputControl]
public ButtonControl swipeLeft { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Remarks
The OpenXR input is true when the runtime recognizes a swipe left microgesture.
swipeRight
A ButtonControl that represents the swipeRight OpenXR binding.
Declaration
[Preserve]
[InputControl]
public ButtonControl swipeRight { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Remarks
The OpenXR input is true when the runtime recognizes a swipe right microgesture.
tapThumb
A ButtonControl that represents the tapThumb OpenXR binding.
Declaration
[Preserve]
[InputControl]
public ButtonControl tapThumb { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Remarks
The OpenXR input is true when the runtime recognizes a thumb tap microgesture.
Methods
FinishSetup()
Assigns each microgesture control property after the Input System creates the device.
Declaration
protected override void FinishSetup()