docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Locate

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

    The key is converted to a string and used as the internal id of the location added to the locations parameter.

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

    The key of the location. This should be a string with the resources path of the asset.

    Type type

    The resource type.

    IList<IResourceLocation> locations

    The list of locations. This will have at most one item.

    Returns
    Type Description
    bool

    True if the key is a string object and a location was created, false otherwise.

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