Interface IResourceLocator
Interface used by the Addressables system to find th 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 |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |
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 |
---|---|---|
System.Object | key | The key to use. |
System.Type | type | |
System.Collections.Generic.IList<IResourceLocation> | locations | The resulting set of locations for the key. |
Returns
Type | Description |
---|---|
System.Boolean | True if any locations were found with the specified key. |