Phaser API Documentation

  Version: 
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: 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