Interface INativeList<T> | Collections | 0.15.0-preview.21
docs.unity3d.com
    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 © 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