Skip to content

Commit 98cd70c

Browse files
committed
GameObjects.Events.REMOVED_FROM_SCENE is a new event, emitted by a Game Object, when it is removed from a Scene, or a Container that is part of the Scene.
1 parent ef91518 commit 98cd70c

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 on a Game Object instance using `GameObject.on('removedfromscene', listener)`.
13+
*
14+
* @event Phaser.GameObjects.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)