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 | Default | description |
---|---|---|---|---|
key | string |
A unique key used to reference the Scene, i.e. |
||
sceneConfig | Phaser.Types.Scenes.SceneType |
The config for the Scene |
||
autoStart | boolean | <optional> | false |
If |
data | object | <optional> |
Optional data object. This will be set as |
The added Scene, if it was added immediately, otherwise null
.