Phaser API Documentation

  Version: 
getIndex(key)

Description:

Retrieves the numeric index of a Scene.

Parameters:

name type description
key string | Phaser.Scene

The key of the Scene.

Returns:
Description:

The index of the Scene.

Type:
  • number
Since: 3.0.0