Phaser API Documentation

  Version: 
sleep(key, [data])

Description:

Puts the given Scene to sleep.

Parameters:

name type arguments description
key string

The Scene to put to sleep.

data object <optional>

An optional data object that will be passed to the Scene and emitted by its sleep event.

Returns:
Description:

This SceneManager.

Since: 3.0.0