Phaser.Cache.Events

Scope: static

Source: src/cache/events/index.js#L7

Events:

Public Members

ADD

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.

Parameters:

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.

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


REMOVE

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.

Parameters:

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.

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


Private Members

Updated on