Format
typescript
SceneManager.GetSceneByName(name)class: SceneManager
Description
Get a scene by its name.
This method searches for a scene with the specified name in the list of loaded scenes and returns a Scene object.
Parameters
| param_name | type | description |
|---|---|---|
| name | String | The name of the scene. |
Return
| type | description |
|---|---|
Scene | The scene. |
Code Example
typescript
const scene = SceneManager.GetSceneByName("test");