docs.unity.cn
    Show / Hide Table of Contents

    Property Item

    Item[Int32]

    Access an element by index

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

    The array index of the buffer to query

    Property Value
    Type Description
    T

    The value of component T at array index index

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if index is out of range

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023