Phaser API Documentation

  Version: 
Event: REMOVED_FROM_SCENE
Phaser.GameObjects.Events.REMOVED_FROM_SCENE
REMOVED_FROM_SCENE

Description:

The Game Object Removed from Scene Event.

This event is dispatched when a Game Object is removed from a Scene.

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

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object that was removed from the Scene.

scene Phaser.Scene

The Scene from which the Game Object was removed.