getAsset(type, key) → {any}
Find a file/asset with a specific key.
Only assets in the download file queue will be found.
Parameters
Name | Type | Description |
---|---|---|
type | string | The type asset you want to check. |
key | string | Key of the asset you want to check. |
Returns
any -
Returns an object if found that has 2 properties: index
and file
; otherwise a non-true value is returned.
The index may change and should only be used immediately following this call.
- Source code: loader/Loader.js (Line 441)
Please login to continue.