Strata - v1.4.10
    Preparing search index...

    Interface Scene

    Represents a top-level game state with a complete render tree.

    interface Scene {
        id: string;
        render: () => ReactNode;
        setup: () => Promise<void>;
        teardown: () => Promise<void>;
        ui?: () => ReactNode;
    }
    Index

    Properties

    id: string

    Unique identifier for the scene.

    render: () => ReactNode

    React Three Fiber content to render for this scene.

    setup: () => Promise<void>

    Called before the scene is loaded. Useful for asset preloading.

    teardown: () => Promise<void>

    Called after the scene is unloaded. Useful for cleanup.

    ui?: () => ReactNode

    Optional 2D UI overlay for this scene.