SceneManager¶
class in Infernux.scene
Description¶
Manages scene loading, unloading, and queries.
description
Static Methods¶
| Method | Description |
|---|---|
static SceneManager.get_active_scene() → Optional[object] |
Get the currently active scene. |
static SceneManager.get_scene_by_name(name: str) → Optional[str] |
Get a scene path by its name. |
static SceneManager.get_scene_by_build_index(build_index: int) → Optional[str] |
Get a scene path by its build index. |
static SceneManager.get_scene_at(index: int) → Optional[str] |
Get a scene path by its index in the scene list. |
static SceneManager.load_scene(scene: Union[int, str]) → bool |
Load a scene by file path or build index. |
static SceneManager.process_pending_load() → None |
Process any pending scene load request. |
static SceneManager.get_scene_count() → int |
Get the total number of scenes in the build. |
static SceneManager.get_scene_name(build_index: int) → Optional[str] |
Get a scene name by build index. |
static SceneManager.get_scene_path(build_index: int) → Optional[str] |
Get a scene file path by build index. |
static SceneManager.get_build_index(name: str) → int |
Get the build index of a scene by name. |
static SceneManager.get_all_scene_names() → List[str] |
Get a list of all scene names in the build. |
static_methods
Example¶
example
See Also¶
see_also