Phaser API Documentation

  Version: 
Event: ADDED_TO_SCENE
Phaser.GameObjects.Events.ADDED_TO_SCENE
ADDED_TO_SCENE

Description:

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).

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object that was added to the Scene.

scene Phaser.Scene

The Scene to which the Game Object was added.

Since: 3.50.0