Phaser API Documentation

  Version: 
remove(key)

Description:

Remove the value for the given key.

If the key is found in this Data Manager it is removed from the internal lists and a removedata event is emitted.

You can also pass in an array of keys, in which case all keys in the array will be removed:

this.data.remove([ 'gold', 'armor', 'health' ]);

Parameters:

name type description
key string | Array.<string>

The key to remove, or an array of keys to remove.

Returns:
Description:

This DataManager object.

Since: 3.0.0
Source: src/data/DataManager.js (Line 480)