Phaser API Documentation

  Version: 
moveBelow(keyA, [keyB])

Description:

Moves a Scene so it is immediately below another Scene in the Scenes list. If the Scene is already below the other, it isn't moved.

This means it will render behind the other Scene.

Parameters:

name type arguments description
keyA string | Phaser.Scene

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

keyB string | Phaser.Scene <optional>

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

Returns:
Description:

This Scene Plugin instance.

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