Phaser API Documentation

  Version: 
swapPosition(keyA, keyB)

Description:

Swaps the positions of two Scenes in the Scenes list.

Parameters:

name type description
keyA string | Phaser.Scene

The first Scene to swap.

keyB string | Phaser.Scene

The second Scene to swap.

Returns:
Description:

This SceneManager.

Since: 3.0.0