Struct Identifier<T> | Kinematica | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Identifier<T>

    Identifier used to uniquely identify snapshot components.

    Namespace: Unity.SnapshotDebugger
    Syntax
    [Serializable]
    public struct Identifier<T> : IEquatable<Identifier<T>>
    Type Parameters
    Name Description
    T

    Properties

    IsValid

    Determines if the given snapshot identifier is valid or not.

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

    True if the identifier is valid; false otherwise.

    Undefined

    An undefined snapshot identifier.

    Declaration
    public static Identifier<T> Undefined { get; }
    Property Value
    Type Description
    Identifier<T>

    Methods

    Create()

    Creates a new snapshot identifier.

    Declaration
    public static Identifier<T> Create()
    Returns
    Type Description
    Identifier<T>

    Equals(Object)

    Determines whether two snapshot identifiers are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The snapshot identifier to compare against the current snapshot identifier.

    Returns
    Type Description
    Boolean

    True if the specified snapshot identifier is equal to the current snapshot identifier; otherwise, false.

    Overrides
    ValueType.Equals(Object)

    Equals(Identifier<T>)

    Determines whether two snapshot identifiers are equal.

    Declaration
    public bool Equals(Identifier<T> other)
    Parameters
    Type Name Description
    Identifier<T> other

    The snapshot identifier to compare against the current snapshot identifier.

    Returns
    Type Description
    Boolean

    True if the specified snapshot identifier is equal to the current snapshot identifier; otherwise, false.

    GetHashCode()

    Override for GetHashCode().

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

    ToString()

    Override for ToString().

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

    Operators

    Equality(Identifier<T>, Identifier<T>)

    Equality operator for snapshot identifiers.

    Declaration
    public static bool operator ==(Identifier<T> lhs, Identifier<T> rhs)
    Parameters
    Type Name Description
    Identifier<T> lhs
    Identifier<T> rhs
    Returns
    Type Description
    Boolean

    Implicit(Identifier<T> to Int32)

    Implicit conversion from a snapshot identifier to an integer.

    Declaration
    public static implicit operator int (Identifier<T> identity)
    Parameters
    Type Name Description
    Identifier<T> identity
    Returns
    Type Description
    Int32

    Inequality(Identifier<T>, Identifier<T>)

    Inequality operator for snapshot identifiers.

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