Phaser API Documentation

  Version: 
existing(child)

Description:

Adds an existing Game Object to this Scene.

If the Game Object renders, it will be added to the Display List. If it has a preUpdate method, it will be added to the Update List.

Parameters:

name type description
child Phaser.GameObjects.GameObject | Phaser.GameObjects.Group | Phaser.GameObjects.Layer

The child to be added to this Scene.

Returns:
Description:

The Game Object that was added.

Since: 3.0.0