Struct ActivateGestureEvent | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ActivateGestureEvent

    The event data for a common gesture used to activate world geometry or UI.

    Namespace: UnityEngine.XR.InteractionSubsystems
    Syntax
    public struct ActivateGestureEvent : IEquatable<ActivateGestureEvent>

    Constructors

    ActivateGestureEvent(GestureId, GestureState, Vector3, Vector3)

    Constructs a new ActivateGestureEvent.

    Declaration
    public ActivateGestureEvent(GestureId id, GestureState state, Vector3 rayOrigin, Vector3 rayDirection)
    Parameters
    Type Name Description
    GestureId id

    The GestureId associated with the gesture.

    GestureState state

    The GestureId associated with the gesture.

    Vector3 rayOrigin

    The ray origin associated with the gesture.

    Vector3 rayDirection

    The ray direction associated with the gesture.

    Properties

    id

    The GestureId associated with this gesture.

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

    rayDirection

    The ray direction in world-space for the ray that should interact with the world.

    Declaration
    public Vector3 rayDirection { get; }
    Property Value
    Type Description
    Vector3

    rayOrigin

    The ray origin in world-space for the ray that should interact with the world.

    Declaration
    public Vector3 rayOrigin { get; }
    Property Value
    Type Description
    Vector3

    state

    The GestureState 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
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(ActivateGestureEvent)

    Declaration
    public bool Equals(ActivateGestureEvent other)
    Parameters
    Type Name Description
    ActivateGestureEvent other
    Returns
    Type Description
    System.Boolean

    GetDefault()

    Gets a default-initialized ActivateGestureEvent.

    Declaration
    public static ActivateGestureEvent GetDefault()
    Returns
    Type Description
    ActivateGestureEvent

    A default ActivateGestureEvent.

    GetHashCode()

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

    ToString()

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

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string describing the gesture's properties.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(ActivateGestureEvent, ActivateGestureEvent)

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

    Inequality(ActivateGestureEvent, ActivateGestureEvent)

    Declaration
    public static bool operator !=(ActivateGestureEvent lhs, ActivateGestureEvent rhs)
    Parameters
    Type Name Description
    ActivateGestureEvent lhs
    ActivateGestureEvent rhs
    Returns
    Type Description
    System.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