The Scene Systems Shutdown Event.
This event is dispatched by a Scene during the Scene Systems shutdown process.
Listen to it from a Scene using this.events.on('shutdown', listener)
.
You should free-up any resources that may be in use by your Scene in this event handler, on the understanding
that the Scene may, at any time, become active again. A shutdown Scene is not 'destroyed', it's simply not
currently active. Use the DESTROY
event to completely clear resources.
name | type | arguments | description |
---|---|---|---|
sys | Phaser.Scenes.Systems |
A reference to the Scene Systems class of the Scene that emitted this event. |
|
data | any | <optional> |
An optional data object that was passed to this Scene when it was shutdown. |