Struct Identifier<T> | Kinematica | 0.5.0-preview.1
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX