dacha
    Preparing search index...

    Interface LoadSceneEvent

    Loads a scene: builds its actors and systems, then enters it. Dispatch it on the world.

    The change is queued. Wait for SceneEntered if you need to know when the switch is done.

    Event name: LoadScene from dacha/events.

    world.dispatchEvent(LoadScene, { id: LEVEL_TWO_SCENE_ID });
    

    Hierarchy (View Summary)

    Index
    autoDestroy?: boolean

    Destroys the scene you leave. Set it to false to keep it loaded, so you can return to it without rebuilding it. It has an effect only when the new scene is entered.

    true

    autoEnter?: boolean

    Enters the scene after it is loaded. Set it to false to preload a scene and enter it later with EnterScene.

    true

    currentTarget: EventTarget

    Current event target

    id: string

    The id of the scene to load.

    stopPropagation: () => void

    Function to stop the event propagation

    target: World

    Target of the event

    type: EventType

    Type of the event