docs.unity3d.com
    Show / Hide Table of Contents

    Interface INativeList<T>

    Inherited Members
    IIndexable<T>.Length
    IIndexable<T>.ElementAt(Int32)
    Namespace: Unity.Collections
    Syntax
    public interface INativeList<T> : IIndexable<T> where T : struct
    Type Parameters
    Name Description
    T

    The type of the elements in the container.

    Properties

    Capacity

    The number of items that the list can hold before it resizes its internal storage.

    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]

    Return the T at the given index. The index must be in the range of [0..Length).

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

    The T index to access.

    Property Value
    Type Description
    T

    A value T for the requested index.

    Methods

    Clear()

    Clears the list.

    Declaration
    void Clear()
    Remarks

    List Capacity remains unchanged.

    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