Summary
If the asset at the specified index in this list is not loaded, this method loads it asynchronously,
returns the UnityEngine.ResourceRequest used to do so, and passes it into `onAssetLoaded` when complete.
Otherwise this method immediately passes the already loaded asset into `onAssetLoaded` and returns null.
Syntax
public ResourceRequest GetAssetAsync(int index, Action<T> onAssetLoaded)
Parameters
| Name |
Type |
Description |
| index |
int |
|
| onAssetLoaded |
Action<T> |
|
Return Value
| Type |
Description |
| ResourceRequest |
|