Phaser API Documentation

  Version: 
exists(key)

Description:

Checks if this cache contains an item matching the given key. This performs the same action as BaseCache.has and is called directly by the Loader.

Parameters:

name type description
key string

The unique key of the item to be checked in this cache.

Returns:
Description:

Returns true if the cache contains an item matching the given key, otherwise false.

Type:
  • boolean
Since: 3.7.0
Source: src/cache/BaseCache.js (Line 90)