Class WindowsMRGestures
Provide WindowsMR specific event callbacks that will inform code of when gesture events occur.
Namespace: UnityEngine.XR.WindowsMR
Syntax
public sealed class WindowsMRGestures : MonoBehaviour
Fields
enableManipulationGesture
Value used to enable/disable the Manipulation Gesture
Declaration
public bool enableManipulationGesture
Field Value
Type | Description |
---|---|
Boolean |
enableNavigationGesture
Value used to enable/disable the Navigation Gesture
Declaration
public bool enableNavigationGesture
Field Value
Type | Description |
---|---|
Boolean |
Properties
gestureSubsystem
Get the WindowsMRGestureSubsystem
whose lifetime this component manages.
Declaration
public WindowsMRGestureSubsystem gestureSubsystem { get; }
Property Value
Type | Description |
---|---|
WindowsMRGestureSubsystem |
Events
onActivate
This event is invoked whenever a
Declaration
public event Action<ActivateGestureEvent> onActivate
Event Type
Type | Description |
---|---|
Action<ActivateGestureEvent> |
onHoldChanged
This event is invoked whenever a WindowsMRHoldGestureEvent is received by the gestures subsystem.
Declaration
public event Action<WindowsMRHoldGestureEvent> onHoldChanged
Event Type
Type | Description |
---|---|
Action<WindowsMRHoldGestureEvent> |
onManipulationChanged
This event is invoked whenever a WindowsMRManipulationGestureEvent is received by the gestures subsystem.
Declaration
public event Action<WindowsMRManipulationGestureEvent> onManipulationChanged
Event Type
Type | Description |
---|---|
Action<WindowsMRManipulationGestureEvent> |
onNavigationChanged
This event is invoked whenever a WindowsMRNavigationGestureEvent is received by the gestures subsystem.
Declaration
public event Action<WindowsMRNavigationGestureEvent> onNavigationChanged
Event Type
Type | Description |
---|---|
Action<WindowsMRNavigationGestureEvent> |
onTappedChanged
This event is invoked whenever a WindowsMRTappedGestureEvent is received by the gestures subsystem.
Declaration
public event Action<WindowsMRTappedGestureEvent> onTappedChanged
Event Type
Type | Description |
---|---|
Action<WindowsMRTappedGestureEvent> |