Phaser API Documentation

  Version: 
Event: DESTROY
Phaser.GameObjects.Events.DESTROY
DESTROY

Description:

The Game Object Destroy Event.

This event is dispatched when a Game Object instance is being destroyed.

Listen for it on a Game Object instance using GameObject.on('destroy', listener).

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object which is being destroyed.

Since: 3.0.0