docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetAssets

    GetAssets<T>(string)

    Load all assets that use the associated name from resources folder.

    Declaration
    public T[] GetAssets<T>(string assetName) where T : Object
    Parameters
    Type Name Description
    string assetName

    The name to check for.

    Returns
    Type Description
    T[]

    Returns an array containing each asset reference assigned the given name.

    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)