Phaser API Documentation

  Version: 
clear([removeFromScene], [destroyChild])

Description:

Removes all members of this Group and optionally removes them from the Scene and / or destroys them.

Does not call Phaser.GameObjects.Group#removeCallback.

Parameters:

name type arguments Default description
removeFromScene boolean <optional> false

Optionally remove each Group member from the Scene.

destroyChild boolean <optional> false

Optionally call destroy on the removed Group members.

Returns:
Description:

This group.

Since: 3.0.0