Class LegacyResourcesLocator | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class LegacyResourcesLocator

    Simple locator that acts as a passthrough for assets loaded from resources directories.

    Inheritance
    Object
    LegacyResourcesLocator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.AddressableAssets.ResourceLocators
    Syntax
    public class LegacyResourcesLocator : IResourceLocator

    Properties

    Keys

    The keys available in this locator.

    Declaration
    public IEnumerable<object> Keys { get; }
    Property Value
    Type Description
    IEnumerable<Object>
    Implements
    IResourceLocator.Keys

    LocatorId

    Id of locator.

    Declaration
    public string LocatorId { get; }
    Property Value
    Type Description
    String
    Implements
    IResourceLocator.LocatorId

    Methods

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

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

    Returns
    Type Description
    Boolean

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

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