Class LegacyResourcesLocator
Simple locator that acts as a passthrough for assets loaded from resources directories.
Inheritance
System.Object
LegacyResourcesLocator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.AddressableAssets
Syntax
public class LegacyResourcesLocator : IResourceLocator
Methods
Locate(Object, 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, out IList<IResourceLocation> locations)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | The key of the location. This should be a string with the resources path of the asset. |
System.Collections.Generic.IList<IResourceLocation> | locations | The list of locations. This will have at most one item. |
Returns
Type | Description |
---|---|
System.Boolean | True if the key is a string object and a location was created, false otherwise. |