Phaser API Documentation

  Version: 
add(child)

Description:

Adds the given Game Object, or array of Game Objects, to this Container.

Each Game Object must be unique within the Container.

Parameters:

name type description
child Phaser.GameObjects.GameObject | Array.<Phaser.GameObjects.GameObject>

The Game Object, or array of Game Objects, to add to the Container.

Returns:
Description:

This Container instance.

Since: 3.4.0