Phaser API Documentation

  Version: 
switch(key)

Description:

Makes this Scene sleep then starts the Scene given.

This will happen at the next Scene Manager update, not immediately.

Parameters:

name type description
key string | Phaser.Scene

The Scene to start.

Returns:
Description:

This Scene Plugin instance.

Since: 3.0.0
Source: src/scene/ScenePlugin.js (Line 596)