Loader#getAssetIndex()

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)
doc_phaser
2017-02-14 10:54:22
Comments
Leave a Comment

Please login to continue.