new SceneManager()
Provides a way to switch between Splat.Scenes. An instance of SceneManager is available as Splat.Game#scenes.
- Source:
Methods
add(name, scene)
Begin tracking a Splat.Scene.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the Splat.Scene to be used later when you call SceneManager#switchTo. |
scene |
Splat.Scene | The Scene to track. |
- Source:
get(name) → {Splat.Scene}
Fetch a Splat.Scene that was previously stored with SceneManager#add.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name that was provided when the Splat.Scene was stored during SceneManager#add. |
- Source:
Returns:
- Type
- Splat.Scene
switchTo(name)
Stop running the current Splat.Scene, and start running the named Scene.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name that was providded when the Splat.Scene was stored during SceneManager#add. |
- Source: