getAssetIndex(type, key) → {number}
Get the queue-index of the 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
number -
The index of this key in the filelist, or -1 if not found.
The index may change and should only be used immediately following this call
- Source code: loader/Loader.js (Line 406)
Please login to continue.