docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GestureId

    A gesture-unique identifier for gestures. This identifies a single unique gesture across different events.

    Implements
    IEquatable<GestureId>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.InteractionSubsystems
    Assembly: Unity.XR.InteractionSubsystems.dll
    Syntax
    public struct GestureId : IEquatable<GestureId>
    Remarks

    Ids are generally unique to a gesture.

    A trackable id is a 128 bit number, stored as two ulongs. This makes it large enough to hold a Guid.

    Constructors

    GestureId(ulong, ulong)

    Constructs a GestureId from two ulongs.

    Declaration
    public GestureId(ulong subId1, ulong subId2)
    Parameters
    Type Name Description
    ulong subId1

    The first half of the id.

    ulong subId2

    The second half of the id.

    Properties

    invalidId

    Get the invalid id.

    Declaration
    public static GestureId invalidId { get; }
    Property Value
    Type Description
    GestureId

    subId1

    The first half of the id.

    Declaration
    public ulong subId1 { get; set; }
    Property Value
    Type Description
    ulong

    subId2

    The second half of the id.

    Declaration
    public ulong subId2 { get; set; }
    Property Value
    Type Description
    ulong

    Methods

    Equals(object)

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

    Equals(GestureId)

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

    GetHashCode()

    Generates a hash code suitable for use in a Dictionary or Set.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for participation in certain collections.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of the id suitable for debugging.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the id.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(GestureId, GestureId)

    Declaration
    public static bool operator ==(GestureId id1, GestureId id2)
    Parameters
    Type Name Description
    GestureId id1
    GestureId id2
    Returns
    Type Description
    bool

    operator !=(GestureId, GestureId)

    Declaration
    public static bool operator !=(GestureId id1, GestureId id2)
    Parameters
    Type Name Description
    GestureId id1
    GestureId id2
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)