Phaser API Documentation

  Version: 
remove(child, [removeFromScene], [destroyChild])

Description:

Removes a member of this Group and optionally removes it from the Scene and / or destroys it.

Calls Phaser.GameObjects.Group#removeCallback.

Parameters:

name type arguments Default description
child Phaser.GameObjects.GameObject

The Game Object to remove.

removeFromScene boolean <optional> false

Optionally remove the Group member from the Scene it belongs to.

destroyChild boolean <optional> false

Optionally call destroy on the removed Group member.

Returns:
Description:

This Group object.

Since: 3.0.0