docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Locate

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

    Locate all of the locations that match the given key.

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

    The key used to locate the locations.

    Type type

    The resource type.

    IList<IResourceLocation> locations

    The list of found locations. This list is shared so it should not be modified.

    Returns
    Type Description
    bool

    Returns true if a location was found. Returns false otherwise.

    Implements
    IResourceLocator.Locate(object, Type, out IList<IResourceLocation>)
    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)