Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

add(child, [skipCallback])

Description:

Adds the given item to the end of the list. Each item must be unique.

Parameters:

name type arguments Default description
child * | Array.<*>

The item, or array of items, to add to the list.

skipCallback boolean <optional> false

Skip calling the List.addCallback if this child is added successfully.

Returns:
Description:

The list's underlying array.

Type:
  • *
Examples:
Since: 3.0.0
Source: src/structs/List.js (Line 99)