Phaser API Documentation

  Version: 
isActive([key])

Description:

Checks if the given Scene is running or not?

Parameters:

name type arguments description
key string | Phaser.Scene <optional>

The Scene to check.

Returns:
Description:

Whether the Scene is running, or null if no matching Scene was found.

Type:
  • boolean
Since: 3.0.0
Source: src/scene/ScenePlugin.js (Line 708)