Phaser API Documentation

  Version: 
Event: DESTROY
Phaser.Scenes.Events.DESTROY
DESTROY

Description:

The Scene Systems Destroy Event.

This event is dispatched by a Scene during the Scene Systems destroy process.

Listen to it from a Scene using this.events.on('destroy', listener).

You should destroy any resources that may be in use by your Scene in this event handler.

Parameters:

name type description
sys Phaser.Scenes.Systems

A reference to the Scene Systems class of the Scene that emitted this event.

Since: 3.0.0