Skip to content

Commit 48f94be

Browse files
committed
Scenes.Events.REMOVED_FROM_SCENE is a new event, emitted by a Scene, when it a Game Object is removed from the display list in the Scene, or a Container that is on the display list.
1 parent 1423ade commit 48f94be

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* @author Richard Davey <rich@photonstorm.com>
3+
* @copyright 2020 Photon Storm Ltd.
4+
* @license {@link https://opensource.org/licenses/MIT|MIT License}
5+
*/
6+
7+
/**
8+
* The Game Object Removed from Scene Event.
9+
*
10+
* This event is dispatched when a Game Object is removed from a Scene.
11+
*
12+
* Listen for it from a Scene using `this.scene.events.on('removedfromscene', listener)`.
13+
*
14+
* @event Phaser.Scenes.Events#REMOVED_FROM_SCENE
15+
* @since 3.50.0
16+
*
17+
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was removed from the Scene.
18+
* @param {Phaser.Scene} scene - The Scene from which the Game Object was removed.
19+
*/
20+
module.exports = 'removedfromscene';

0 commit comments

Comments
 (0)