Format
typescript
SceneManager.activeSceneclass: SceneManager
Description
The active scene.
The active scene refers to the scene that is currently being displayed and running, i.e., the scene in which the player is currently located. In single-scene games, there is usually only one active scene. In multi-scene games, there can be multiple active scenes.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Scene |
Code Example
typescript
const active_scene = SceneManager.activeScene;