Phaser API Documentation

  Version: 
setActive(value, [data])

Description:

Set the active state of this Scene.

An active Scene will run its core update loop.

Parameters:

name type arguments description
value boolean

If true the Scene will be resumed, if previously paused. If false it will be paused.

data object <optional>

A data object that will be passed in the 'resume' or 'pause' events.

Returns:
Description:

This Systems object.

Since: 3.0.0
Source: src/scene/Systems.js (Line 676)