Phaser API Documentation

  Version: 
getScenes([isActive], [inReverse])

Description:

Returns an array of all the current Scenes being managed by this Scene Manager.

You can filter the output by the active state of the Scene and choose to have the array returned in normal or reversed order.

Parameters:

name type arguments Default description
isActive boolean <optional> true

Only include Scene's that are currently active?

inReverse boolean <optional> false

Return the array of Scenes in reverse?

Returns:
Description:

An array containing all of the Scenes in the Scene Manager.

Type:
Since: 3.16.0