Format
typescript
SceneManager.CreateScene(name)class: SceneManager
Description
Create an empty new scene with the given name during runtime. The new scene will be added to the hierarchy along with any existing open scenes.
Parameters
| param_name | type | description |
|---|---|---|
| name | String | The name of the scene. |
Return
| type | description |
|---|---|
Scene | The created scene. |
Code Example
typescript
const scene = SceneManager.CreateScene("test");