Format
typescript
Scene.nameclass: Scene
Description
The name of the current scene.
The scene name can be used to identify and recognize scenes, typically used for loading, switching, or other scene-related operations in code.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
string | The name of the scene. |
Code Example
typescript
const scene = SceneManager.CreateScene("test");
const name = scene.name;