Add the Scene into the Scene Manager and start it if 'autoStart' is true or the Scene config 'active' property is set.
name | type | arguments | description |
---|---|---|---|
key | string |
The Scene key. |
|
sceneConfig | function | Phaser.Scene | Phaser.Types.Scenes.SettingsConfig | Phaser.Types.Scenes.CreateSceneFromObjectConfig |
The config for the Scene. |
|
autoStart | boolean |
Whether to start the Scene after it's added. |
|
data | object | <optional> |
Optional data object. This will be set as Scene.settings.data and passed to |
An instance of the Scene that was added to the Scene Manager.