Phaser API Documentation

  Version: 
remove(key)

Description:

Removes and item from this cache based on the given key.

If an entry matching the key is found it is removed from the cache and a remove event emitted. No additional checks are done on the item removed. If other systems or parts of your game code are relying on this item, it is up to you to sever those relationships prior to removing the item.

Parameters:

name type description
key string

The unique key of the item to remove from the cache.

Returns:
Description:

This BaseCache object.

Since: 3.0.0
Source: src/cache/BaseCache.js (Line 121)