Phaser API Documentation

  Version: 

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.

Examples:
Since: 3.0.0
Source: src/structs/List.js (Line 327)