Skip to content

Format

typescript
SceneManager.activeScene

class: 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_nametypedescription

Return

typedescription
Scene

Code Example

typescript
 const active_scene = SceneManager.activeScene;