Phaser API Documentation

  Version: 
keyExists(file)

Description:

Checks the key and type of the given file to see if it will conflict with anything already in a Cache, the Texture Manager, or the list or inflight queues.

Parameters:

name type description
file Phaser.Loader.File

The file to check the key of.

Returns:
Description:

true if adding this file will cause a cache or queue conflict, otherwise false.

Type:
  • boolean
Since: 3.7.0