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
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 |
---|---|
Magic |
Events
onActivate
This event is invoked whenever a Unity
Declaration
public event Action<ActivateGestureEvent> onActivate
Event Type
Type | Description |
---|---|
Action<Activate |
onTouchpadGestureChanged
This event is invoked whenever a Magic
Declaration
public event Action<MagicLeapTouchpadGestureEvent> onTouchpadGestureChanged
Event Type
Type | Description |
---|---|
Action<Magic |