docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method At

    At<T>(NativeArray<T>, int)

    Retrieves a reference to an element of a native array.

    Declaration
    public static ref T At<T>(this NativeArray<T> nativeArray, int index) where T : struct
    Parameters
    Type Name Description
    NativeArray<T> nativeArray
    int index

    Index of the native array element.

    Returns
    Type Description
    T

    Reference to the element at the index passed as argument.

    Type Parameters
    Name Description
    T

    At<T>(NativeList<T>, int)

    Retrieves a reference to an element of a native list.

    Declaration
    public static ref T At<T>(this NativeList<T> nativeList, int index) where T : struct
    Parameters
    Type Name Description
    NativeList<T> nativeList
    int index

    Index of the native list element.

    Returns
    Type Description
    T

    Reference to the element at the index passed as argument.

    Type Parameters
    Name Description
    T

    At<T>(NativeSlice<T>, int)

    Retrieves a reference to an element of a native slice.

    Declaration
    public static ref T At<T>(this NativeSlice<T> nativeSlice, int index) where T : struct
    Parameters
    Type Name Description
    NativeSlice<T> nativeSlice
    int index

    Index of the native slice element.

    Returns
    Type Description
    T

    Reference to the element at the index passed as argument.

    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2024 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)