Skip to content

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_nametypedescription
nameStringThe name of the scene.

Return

typedescription
SceneThe created scene.

Code Example

typescript
 const scene = SceneManager.CreateScene("test");