Interface INativeList<T> | Collections | 0.12.0-preview.13
docs.unity.cn
    Show / Hide Table of Contents

    Interface INativeList<T>

    Namespace: Unity.Collections
    Syntax
    public interface INativeList<T>
        where T : struct
    Type Parameters
    Name Description
    T

    Properties

    Capacity

    Declaration
    int Capacity { get; set; }
    Property Value
    Type Description
    Int32

    IsEmpty

    Reports whether container is empty.

    Declaration
    bool IsEmpty { get; }
    Property Value
    Type Description
    Boolean

    True if this container empty.

    Item[Int32]

    Declaration
    T this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    T

    Length

    Declaration
    int Length { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    Clear()

    Clears the list.

    Declaration
    void Clear()
    Remarks

    List Capacity remains unchanged.

    ElementAt(Int32)

    Declaration
    T ElementAt(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, August 13, 2020