docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToArray

    ToArray<T>(int, int)

    Returns an array that is a copy of the linear memory data.

    Declaration
    public T[] ToArray<T>(int dstCount, int srcOffset = 0) where T : unmanaged
    Parameters
    Type Name Description
    int dstCount

    The number of elements in the array.

    int srcOffset

    The index of the first element in the data.

    Returns
    Type Description
    T[]

    Array of elements.

    Type Parameters
    Name Description
    T

    The data type of the elements.

    Implements
    IReadableTensorData.ToArray<T>(int, int)
    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)