A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): Reset Layout now clears the layout key actually in use
esengine96852009d683
diff --git a/desktop/src/layout/DockLayout.tsx b/desktop/src/layout/DockLayout.tsxindex 9184e05bc..1c0e542c5 100644--- a/desktop/src/layout/DockLayout.tsx+++ b/desktop/src/layout/DockLayout.tsx@@ -54,7 +54,7 @@ const components: Record<string, FC<IDockviewPanelProps>> = {// editing canvases (Material Graph / Tilemap / Tileset) are NOT bottom tabs — they// open on-demand as document tabs beside the Viewport (dockApi.openDocument),// matching UE/Unity. The Content Drawer (Ctrl+Space) is a separate overlay.-const LAYOUT_KEY = 'estella.editor.layout.v6';+export const LAYOUT_KEY = 'estella.editor.layout.v6';function buildDefaultLayout(api: DockviewReadyEvent['api']) {// Viewport is the anchor; the right column stacks Outliner over Details.diff --git a/desktop/src/layout/MenuBar.tsx b/desktop/src/layout/MenuBar.tsxindex d339cf4e6..8aacbdd7e 100644--- a/desktop/src/layout/MenuBar.tsx+++ b/desktop/src/layout/MenuBar.tsx@@ -7,6 +7,7 @@// region; the menus, dropdowns, and window controls opt out of dragging.import { useEffect, useRef, useState, useSyncExternalStore } from 'react';import { WindowControls } from '@/layout/WindowControls';+import { LAYOUT_KEY } from '@/layout/DockLayout';import { useEditorStore } from '@/store/editorStore';import { ProjectStore } from '@/project/ProjectStore';import { EditorHistory } from '@/engine/EditorHistory';@@ -14,8 +15,6 @@ import { Toasts } from '@/store/Toasts';import { MenuItems, type MenuItem } from '@/components/Menu';import { commands, formatKeybinding } from '@/commands';-const LAYOUT_KEY = 'estella.editor.layout.v1';-interface MenuDef {title: string;items: MenuItem[];