Skip to content

Commit 1423ade

Browse files
committed
Scenes.Events.ADDED_TO_SCENE is a new event, emitted by a Scene, when a new Game Object is added to the display list in the Scene, or a Container that is on the display list.
1 parent 98cd70c commit 1423ade

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 Added to Scene Event.
9+
*
10+
* This event is dispatched when a Game Object is added to a Scene.
11+
*
12+
* Listen for it from a Scene using `this.scene.events.on('addedtoscene', listener)`.
13+
*
14+
* @event Phaser.Scenes.Events#ADDED_TO_SCENE
15+
* @since 3.50.0
16+
*
17+
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the Scene.
18+
* @param {Phaser.Scene} scene - The Scene to which the Game Object was added.
19+
*/
20+
module.exports = 'addedtoscene';

0 commit comments

Comments
 (0)