Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

addAt(child, [index], [skipCallback])

Description:

Adds an item to list, starting at a specified index. Each item must be unique within the list.

Parameters:

name type arguments Default description
child *

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

index number <optional> 0

The index in the list at which the element(s) will be inserted.

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 124)