Cache#checkKey()

checkKey(cache, key) → {boolean}

Checks if a key for the given cache object type exists.

Parameters
Name Type Description
cache integer

The cache to search. One of the Cache consts such as Phaser.Cache.IMAGE or Phaser.Cache.SOUND.

key string

The key of the asset within the cache.

Returns
boolean -

True if the key exists, otherwise false.

Source code: loader/Cache.js (Line 784)
doc_phaser
2017-02-14 10:40:03
Comments
Leave a Comment

Please login to continue.