Phaser API Documentation

  Version: 
setActive(value, [key], [data])

Description:

Sets the active state of the given Scene.

Parameters:

name type arguments description
value boolean

If true the Scene will be resumed. If false it will be paused.

key string | Phaser.Scene <optional>

The Scene to set the active state of.

data object <optional>

An optional data object that will be passed to the Scene and emitted with its events.

Returns:
Description:

This Scene Plugin instance.

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