docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Locate

    Locate(object, Type, out IList<IResourceLocation>)

    Retrieve the locations from a specified key.

    Declaration
    bool Locate(object key, Type type, out IList<IResourceLocation> locations)
    Parameters
    Type Name Description
    object key

    The key to use.

    Type type

    The resource type.

    IList<IResourceLocation> locations

    The resulting set of locations for the key.

    Returns
    Type Description
    bool

    True if any locations were found with the specified key.

    In This Article
    Back to top
    Copyright © 2025 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)