Phaser API Documentation

This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: 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.


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.

Since: 3.0.0