Namespace: Events

Phaser.Cache. Events

Events


ADD

The Cache Add Event.

This event is dispatched by any Cache that extends the BaseCache each time a new object is added to it.

Parameters:
Name Type Description
cache Phaser.Cache.BaseCache

The cache to which the object was added.

key string

The key of the object added to the cache.

object *

A reference to the object that was added to the cache.

Source: src/cache/events/ADD_EVENT.js (Line 7)

REMOVE

The Cache Remove Event.

This event is dispatched by any Cache that extends the BaseCache each time an object is removed from it.

Parameters:
Name Type Description
cache Phaser.Cache.BaseCache

The cache from which the object was removed.

key string

The key of the object removed from the cache.

object *

A reference to the object that was removed from the cache.

Source: src/cache/events/REMOVE_EVENT.js (Line 7)