Interface IResourceLocator | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IResourceLocator

    Interface used by the Addressables system to find the locations of a given key.

    Namespace: UnityEngine.AddressableAssets.ResourceLocators
    Syntax
    public interface IResourceLocator

    Properties

    Keys

    The keys defined by this locator.

    Declaration
    IEnumerable<object> Keys { get; }
    Property Value
    Type Description
    IEnumerable<Object>

    LocatorId

    The id for this locator.

    Declaration
    string LocatorId { get; }
    Property Value
    Type Description
    String

    Methods

    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
    IList<IResourceLocation> locations

    The resulting set of locations for the key.

    Returns
    Type Description
    Boolean

    True if any locations were found with the specified key.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023