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

    Struct Identifier<T>

    Wrapper around a memory identifier that carries the type of the memory identifier.

    Namespace: Unity.Kinematica
    Syntax
    public struct Identifier<T>
        where T : struct
    Type Parameters
    Name Description
    T

    Properties

    Invalid

    An invalid identifier.

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

    IsValid

    Determines if the given identifier is valid or not.

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

    True if the identifier is valid; false otherwise.

    Methods

    Create(MemoryIdentifier)

    Creates a new typed identifier from a plain identifier.

    Declaration
    public static Identifier<T> Create(MemoryIdentifier identifier)
    Parameters
    Type Name Description
    MemoryIdentifier identifier

    The memory identifier that the typed identifier should refer to.

    Returns
    Type Description
    Identifier<T>

    Operators

    Implicit(Identifier<T> to MemoryIdentifier)

    Implicit conversion from a typed identifier to a plain memory identifier.

    Declaration
    public static implicit operator MemoryIdentifier(Identifier<T> identifier)
    Parameters
    Type Name Description
    Identifier<T> identifier
    Returns
    Type Description
    MemoryIdentifier

    See Also

    MemoryIdentifier
    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