docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface INativeList<T>

    A resizable list.

    Inherited Members
    IIndexable<T>.Length
    IIndexable<T>.ElementAt(int)
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public interface INativeList<T> : IIndexable<T> where T : unmanaged
    Type Parameters
    Name Description
    T

    The type of the elements.

    Properties

    Name Description
    Capacity

    The number of elements that fit in the current allocation.

    IsEmpty

    Whether this list is empty.

    this[int]

    The element at an index.

    Methods

    Name Description
    Clear()

    Sets the length to 0.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)