Phaser API Documentation

  Version: 
getScene(key)

Description:

Retrieves a Scene based on the given key.

If an actual Scene is passed to this method, it can be used to check if its currently within the Scene Manager, or not.

Parameters:

name type description
key string | Phaser.Scene

The key of the Scene to retrieve.

Returns:
Description:

The Scene, or null if no matching Scene was found.

Type:
Since: 3.0.0