Phaser API Documentation

  Version: 
Filter
Namespace: Events
Phaser.Cache.Events
Source: src/cache/events/index.js (Line 7)

Events

ADD
Focus
Focus

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:

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
Focus
Focus
REMOVE
Focus
Focus

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:

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.

Since: 3.0.0
Focus
Focus