Phaser API Documentation

  Version: 
remove([key])

Description:

Removes a Scene from the SceneManager.

The Scene is removed from the local scenes array, it's key is cleared from the keys cache and Scene.Systems.destroy is then called on it.

If the SceneManager is processing the Scenes when this method is called it will queue the operation for the next update sequence.

Parameters:

name type arguments description
key string | Phaser.Scene <optional>

The Scene to be removed.

Returns:
Description:

This Scene Plugin instance.

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