Phaser API Documentation

  Version: 
removeAt(index, [destroyChild])

Description:

Removes the Game Object at the given position in this Container.

You can also optionally call destroy on the Game Object, if one is found.

Parameters:

name type arguments Default description
index number

The index of the Game Object to be removed.

destroyChild boolean <optional> false

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

Returns:
Description:

This Container instance.

Examples:
Since: 3.4.0