Class WindowsMRGestureSubsystem
WindowsMR implementation of the XRGestureSubsystem
. Do not create this directly. Use the SubsystemManager
instead.
Namespace: UnityEngine.XR.WindowsMR
Syntax
public sealed class WindowsMRGestureSubsystem : XRGestureSubsystem
Properties
holdGestureEvents
A collection of all WindowsMRHoldGestureEvents managed by this subsystem. This is cleared every frame and refreshed with new gesture events.
Declaration
public NativeArray<WindowsMRHoldGestureEvent> holdGestureEvents { get; }
Property Value
Type | Description |
---|---|
NativeArray<WindowsMRHoldGestureEvent> |
manipulationGestureEvents
A collection of all WindowsMRManipulationGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.
Declaration
public NativeArray<WindowsMRManipulationGestureEvent> manipulationGestureEvents { get; }
Property Value
Type | Description |
---|---|
NativeArray<WindowsMRManipulationGestureEvent> |
navigationGestureEvents
A collection of all WindowsMRNavigationGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.
Declaration
public NativeArray<WindowsMRNavigationGestureEvent> navigationGestureEvents { get; }
Property Value
Type | Description |
---|---|
NativeArray<WindowsMRNavigationGestureEvent> |
tappedGestureEvents
A collection of all WindowsMRTappedGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.
Declaration
public NativeArray<WindowsMRTappedGestureEvent> tappedGestureEvents { get; }
Property Value
Type | Description |
---|---|
NativeArray<WindowsMRTappedGestureEvent> |
Methods
CreateProvider()
Creates the provider interface.
Declaration
protected override Provider CreateProvider()
Returns
Type | Description |
---|---|
Provider | The provider interface for WindowsMR |
SetEnableManipulationGesture(Boolean)
Enable the manipulation gesture. Enabling this gesture will disable the navigation gesture if it has been enabled. These gestures cannot be enabled simultaneously.
Declaration
public bool SetEnableManipulationGesture(bool enable)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enable | true if manipulation gesture should be enabled, else false. |
Returns
Type | Description |
---|---|
Boolean | true if the gesture was enabled, else false |
SetEnableNavigationGesture(Boolean)
Enable the navigation gesture. Enabling this gesture will disable the manipulation gesture if it has been enabled. These gestures cannot be enabled simultaneously.
Declaration
public bool SetEnableNavigationGesture(bool enable)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enable | true if navigation gesture should be enabled, else false. |
Returns
Type | Description |
---|---|
Boolean | true if the gesture was enabled, else false |