Class MagicLeapGestures | Magic Leap XR Plugin | 6.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    MagicLeapGestures
    Namespace: UnityEngine.XR.MagicLeap
    Syntax
    public sealed class MagicLeapGestures : MonoBehaviour

    Properties

    controllerGesturesEnabled

    Declaration
    public bool controllerGesturesEnabled { get; set; }
    Property Value
    Type Description
    Boolean

    gestureSubsystem

    Get the MagicLeapGestureSubsystem whose lifetime this component manages.

    Declaration
    public MagicLeapGestureSubsystem gestureSubsystem { get; }
    Property Value
    Type Description
    MagicLeapGestureSubsystem

    handGesturesEnabled

    Declaration
    public bool handGesturesEnabled { get; set; }
    Property Value
    Type Description
    Boolean

    Events

    onActivate

    This event is invoked whenever a ActivateGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<ActivateGestureEvent> onActivate
    Event Type
    Type Description
    Action<ActivateGestureEvent>

    onKeyPoseGestureChanged

    This event is invoked whenever a MagicLeapKeyPoseGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<MagicLeapKeyPoseGestureEvent> onKeyPoseGestureChanged
    Event Type
    Type Description
    Action<MagicLeapKeyPoseGestureEvent>

    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>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023