mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
GameObjects.Events.ADDED_TO_SCENE
is a new event, emitted by a Game Object, when it is added to a Scene, or a Container that is part of the Scene.
This commit is contained in:
parent
a273d69f2a
commit
ef91518da5
1 changed files with 20 additions and 0 deletions
20
src/gameobjects/events/ADDED_TO_SCENE_EVENT.js
Normal file
20
src/gameobjects/events/ADDED_TO_SCENE_EVENT.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* @author Richard Davey <rich@photonstorm.com>
|
||||
* @copyright 2020 Photon Storm Ltd.
|
||||
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Game Object Added to Scene Event.
|
||||
*
|
||||
* This event is dispatched when a Game Object is added to a Scene.
|
||||
*
|
||||
* Listen for it on a Game Object instance using `GameObject.on('addedtoscene', listener)`.
|
||||
*
|
||||
* @event Phaser.GameObjects.Events#ADDED_TO_SCENE
|
||||
* @since 3.50.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the Scene.
|
||||
* @param {Phaser.Scene} scene - The Scene to which the Game Object was added.
|
||||
*/
|
||||
module.exports = 'addedtoscene';
|
Loading…
Add table
Reference in a new issue