Phaser API Documentation

  Version: 
sleep(key, [data])

Description:

Puts the given Scene to sleep.

Parameters:

name type arguments description
key string | Phaser.Scene

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 Scene Manager instance.

Since: 3.0.0