Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Scenes.SceneManager
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
Source:
src/scene/SceneManager.js
(Line
1279
)
Possible examples