Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Structs.List
swap(child1, child2)
Description:
Swaps the positions of two items in the list.
Parameters:
name
type
description
child1
*
The first item to swap.
child2
*
The second item to swap.
Since:
3.0.0
Source:
src/structs/List.js
(Line
327
)
Possible examples