Method LoadResourceLocationsAsync
LoadResourceLocationsAsync(IList<object>, MergeMode, Type)
Loads the resource locations specified by a list of keys.
선언
[Obsolete]
public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(IList<object> keys, Addressables.MergeMode mode, Type type = null)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IList<object> | keys | The set of keys to use. |
Addressables.MergeMode | mode | The mode for merging the results of the found locations. |
Type | type | A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<IList<IResourceLocation>> | The operation handle for the request. |
참고
The operation always completes successfully and the operation handle's Result
object always contains a valid IList instance.
If no assets matched the specified keys, the list in Result
is empty.
See Loading assets by location for more information.
See Operations for information on handling the asynchronous operations used to load Addressable assets.
LoadResourceLocationsAsync(IEnumerable, MergeMode, Type)
Loads the resource locations specified by a set of keys.
선언
public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(IEnumerable keys, Addressables.MergeMode mode, Type type = null)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IEnumerable | keys | The set of keys to use. |
Addressables.MergeMode | mode | The mode for merging the results of the found locations. |
Type | type | A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<IList<IResourceLocation>> | The operation handle for the request. |
참고
The operation always completes successfully and the operation handle's Result
object always contains a valid IList instance.
If no assets matched the specified keys, the list in Result
is empty.
See Loading assets by location for more information.
See Operations for information on handling the asynchronous operations used to load Addressable assets.
LoadResourceLocationsAsync(object, Type)
Loads the resource locations specified by a key.
선언
public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(object key, Type type = null)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | key | The key for the locations. |
Type | type | A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<IList<IResourceLocation>> | The operation handle for the request. |
참고
The operation always completes successfully and the operation handle's Result
object always contains a valid IList instance.
If no assets matched the specified key, the list in Result
is empty.
See Loading assets by location for more information.
See Operations for information on handling the asynchronous operations used to load Addressable assets.