docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindAssets

    FindAssets<T>(string)

    Finds all assets of type T in the project.

    Declaration
    public static IEnumerable<T> FindAssets<T>(string extension = null)
    Parameters
    Type Name Description
    string extension

    Asset type extension i.e ".mat" for materials

    Returns
    Type Description
    IEnumerable<T>

    A IEnumerable object

    Type Parameters
    Name Description
    T

    The type of material you are looking for

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)