docs.unity.cn
    Show / Hide Table of Contents

    Property Item

    Item[Int32]

    Array-like indexing operator.

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

    The zero-based index.

    Property Value
    Type Description
    T
    Implements
    INativeList<T>.Item[Int32]
    Examples
            for (int i = 0; i < buffer.Length; i++)
            {
                buffer[i] = i * i;
            }
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use