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

    Struct MagicLeapKeyPoseGestureEvent

    The event data related to a Magic Leap KeyPose gesture

    Namespace: UnityEngine.XR.MagicLeap
    Syntax
    public struct MagicLeapKeyPoseGestureEvent : IEquatable<MagicLeapKeyPoseGestureEvent>

    Constructors

    MagicLeapKeyPoseGestureEvent(GestureId, GestureState, MagicLeapKeyPose, MagicLeapHand)

    Constructs a new MagicLeapKeyPoseGestureEvent.

    Declaration
    public MagicLeapKeyPoseGestureEvent(GestureId id, GestureState state, MagicLeapKeyPose keyPose, MagicLeapHand hand)
    Parameters
    Type Name Description
    GestureId id

    The GestureId associated with the gesture.

    GestureState state

    The GestureId associated with the gesture.

    MagicLeapKeyPose keyPose

    The MagicLeapKeyPose associated with the gesture.

    MagicLeapHand hand

    The MagicLeapHand associated with the gesture.

    Properties

    hand

    The MagicLeapHand of the gesture.

    Declaration
    public MagicLeapHand hand { get; }
    Property Value
    Type Description
    MagicLeapHand

    id

    The GestureId associated with this gesture.

    Declaration
    public GestureId id { get; }
    Property Value
    Type Description
    GestureId

    keyPose

    The MagicLeapKeyPose of the gesture.

    Declaration
    public MagicLeapKeyPose keyPose { get; }
    Property Value
    Type Description
    MagicLeapKeyPose

    state

    The state of the gesture.

    Declaration
    public GestureState state { get; }
    Property Value
    Type Description
    GestureState

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(MagicLeapKeyPoseGestureEvent)

    Declaration
    public bool Equals(MagicLeapKeyPoseGestureEvent other)
    Parameters
    Type Name Description
    MagicLeapKeyPoseGestureEvent other
    Returns
    Type Description
    Boolean

    GetDefault()

    Gets a default-initialized MagicLeapKeyPoseGestureEvent.

    Declaration
    public static MagicLeapKeyPoseGestureEvent GetDefault()
    Returns
    Type Description
    MagicLeapKeyPoseGestureEvent

    A default MagicLeapKeyPoseGestureEvent.

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a new string describing the gestures's properties suitable for debugging purposes.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string describing the gestures's properties.

    Overrides
    ValueType.ToString()

    Operators

    Equality(MagicLeapKeyPoseGestureEvent, MagicLeapKeyPoseGestureEvent)

    Declaration
    public static bool operator ==(MagicLeapKeyPoseGestureEvent lhs, MagicLeapKeyPoseGestureEvent rhs)
    Parameters
    Type Name Description
    MagicLeapKeyPoseGestureEvent lhs
    MagicLeapKeyPoseGestureEvent rhs
    Returns
    Type Description
    Boolean

    Inequality(MagicLeapKeyPoseGestureEvent, MagicLeapKeyPoseGestureEvent)

    Declaration
    public static bool operator !=(MagicLeapKeyPoseGestureEvent lhs, MagicLeapKeyPoseGestureEvent rhs)
    Parameters
    Type Name Description
    MagicLeapKeyPoseGestureEvent lhs
    MagicLeapKeyPoseGestureEvent rhs
    Returns
    Type Description
    Boolean

    See Also

    XRGestureSubsystem
    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