Phaser API Documentation

  Version: 
swapPosition(keyA, [keyB])

Description:

Swaps the position of two scenes in the Scenes list.

This controls the order in which they are rendered and updated.

Parameters:

name type arguments description
keyA string

The first Scene to swap.

keyB string <optional>

The second Scene to swap. If none is given it defaults to this Scene.

Returns:
Description:

This ScenePlugin object.

Since: 3.2.0
Source: src/scene/ScenePlugin.js (Line 751)