Class MagicLeapGestures
Controls the lifecycle and configuration options for a Magic Leap gesture subsystem. There is only one active Magic Leap Gestures. The event callbacks will inform code of when gesture events occur.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
[DisallowMultipleComponent]
public sealed class MagicLeapGestures : MonoBehaviour
Properties
controllerGesturesEnabled
Getter/Setter to determine if the controller Gestures are enabled.
Declaration
public bool controllerGesturesEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
gestureSubsystem
Get the MagicLeapGestureSubsystem
whose lifetime this component manages.
Declaration
public MagicLeapGestureSubsystem gestureSubsystem { get; }
Property Value
Type | Description |
---|---|
MagicLeapGestureSubsystem |
Events
onActivate
This event is invoked whenever a UnityEngine.XR.InteractionSubsystems.ActivateGestureEvent is received by the gestures subsystem.
Declaration
public event Action<ActivateGestureEvent> onActivate
Event Type
Type | Description |
---|---|
Action<ActivateGestureEvent> |
onTouchpadGestureChanged
This event is invoked whenever a MagicLeapTouchpadGestureEvent is received by the gestures subsystem.
Declaration
public event Action<MagicLeapTouchpadGestureEvent> onTouchpadGestureChanged
Event Type
Type | Description |
---|---|
Action<MagicLeapTouchpadGestureEvent> |