Phaser API Documentation

  Version: 
add(child, [addToScene])

Description:

Adds a Game Object to this group.

Calls Phaser.GameObjects.Group#createCallback.

Parameters:

name type arguments Default description
child Phaser.GameObjects.GameObject

The Game Object to add.

addToScene boolean <optional> false

Also add the Game Object to the scene.

Returns:
Description:

This Group object.

Since: 3.0.0