Phaser API Documentation

moveAbove(keyA, [keyB])


Swaps the position of two scenes in the Scenes list, so that Scene B is directly above Scene A.

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


name type arguments description
keyA string | Phaser.Scene

The Scene that Scene B will be moved to be above.

keyB string | Phaser.Scene <optional>

The Scene to be moved. If none is given it defaults to this Scene.


This Scene Plugin instance.

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