Strata - v1.4.10
    Preparing search index...

    Interface SceneManager

    Public interface for the SceneManager.

    interface SceneManager {
        current: Scene | null;
        isLoading: boolean;
        load: (sceneId: string) => Promise<void>;
        loadProgress: number;
        pop: () => Promise<void>;
        push: (sceneId: string) => Promise<void>;
        register: (scene: Scene) => void;
        stack: Scene[];
    }
    Index

    Properties

    current: Scene | null

    The currently active scene.

    isLoading: boolean

    Whether a scene is currently being loaded.

    load: (sceneId: string) => Promise<void>

    Replaces the current scene with a new one.

    loadProgress: number

    Progress of the current load operation (0-100).

    pop: () => Promise<void>

    Removes the top-most scene from the stack.

    push: (sceneId: string) => Promise<void>

    Pushes a new scene onto the stack (overlaying the current one).

    register: (scene: Scene) => void

    Registers a new scene definition.

    stack: Scene[]

    The stack of active scenes (for overlays).