Phaser API Documentation

  Version: 
exists(key)

Description:

Checks the given key to see if a Texture using it exists within this Texture Manager.

Parameters:

name type description
key string

The unique string-based key of the Texture.

Returns:
Description:

Returns true if a Texture matching the given key exists in this Texture Manager.

Type:
  • boolean
Since: 3.0.0