Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

moveTo(child, index)

Description:

Moves an item in the List to a new position.

Parameters:

name type description
child *

The item to move.

index number

Moves an item in the List to a new position.

Returns:
Description:

The item that was moved.

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