Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
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:
*
Since:
3.0.0
Source:
src/structs/List.js
(Line
342
)
Possible examples