Skip to main content
Version: Phaser v3.88.2

Cache.Events

ADD

Description: The Cache Add Event.

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

nametypeoptionaldescription
cachePhaser.Cache.BaseCacheNoThe cache to which the object was added.
keystringNoThe key of the object added to the cache.
object*NoA reference to the object that was added to the cache.

Member of: Phaser.Cache.Events

Source: src/cache/events/ADD_EVENT.js#L7
Since: 3.0.0

REMOVE

Description: The Cache Remove Event.

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

nametypeoptionaldescription
cachePhaser.Cache.BaseCacheNoThe cache from which the object was removed.
keystringNoThe key of the object removed from the cache.
object*NoA reference to the object that was removed from the cache.

Member of: Phaser.Cache.Events

Source: src/cache/events/REMOVE_EVENT.js#L7
Since: 3.0.0