Phaser API Documentation

  Version: 
addCustom(key)

Description:

Add your own custom Cache for storing your own files. The cache will be available under Cache.custom.key. The cache will only be created if the key is not already in use.

Parameters:

name type description
key string

The unique key of your custom cache.

Returns:
Description:

A reference to the BaseCache that was created. If the key was already in use, a reference to the existing cache is returned instead.

Since: 3.0.0