Phaser API Documentation

  Version: 
run(key, [data])

Description:

Runs the given Scene.

If the given Scene is paused, it will resume it. If sleeping, it will wake it. If not running at all, it will be started.

Use this if you wish to open a modal Scene by calling pause on the current Scene, then run on the modal Scene.

Parameters:

name type arguments description
key string

The Scene to run.

data object <optional>

A data object that will be passed to the Scene on start, wake, or resume.

Returns:
Description:

This Scene Manager.

Since: 3.10.0