checkKeyExists(type, key) → {boolean}
Check whether a file/asset with a specific key is queued to be loaded.
To access a loaded asset use Phaser.Cache, eg. Phaser.Cache#checkImageKey
Parameters
Name | Type | Description |
---|---|---|
type | string | The type asset you want to check. |
key | string | Key of the asset you want to check. |
Returns
boolean -
Return true if exists, otherwise return false.
- Source code: loader/Loader.js (Line 390)
Please login to continue.