Loader#checkKeyExists()

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

Please login to continue.