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 description
key string

A unique key used to reference the Scene, i.e. MainMenu or Level1.

Returns:
Description:

This SceneManager.

Since: 3.2.0