docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Cast

    Cast<T>(Array)

    Casts an input array to type T if supported by the cast map.

    Declaration
    public static T[] Cast<T>(Array array)
    Parameters
    Type Name Description
    Array array

    Input array to be casted.

    Returns
    Type Description
    T[]

    Array of type T.

    Type Parameters
    Name Description
    T

    Cast type.

    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)