Phaser API Documentation

  Version: 
removeAll([destroyChild])

Description:

Removes all Game Objects from this Container.

You can also optionally call destroy on each Game Object that is removed from the Container.

Parameters:

name type arguments Default description
destroyChild boolean <optional> false

Optionally call destroy on each Game Object successfully removed from this Container.

Returns:
Description:

This Container instance.

Examples:
Since: 3.4.0