Phaser API Documentation

  Version: 
getIndex([key])

Description:

Retrieves the numeric index of a Scene in the Scenes list.

Parameters:

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

The Scene to get the index of.

Returns:
Description:

The index of the Scene.

Type:
  • number
Since: 3.7.0
Source: src/scene/ScenePlugin.js (Line 954)