Phaser API Documentation

  Version: 
get(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 Scene to retrieve.

Returns:
Description:

The Scene.

Type:
Since: 3.0.0