Skip to content

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.

Persist per-project gizmo display preferences

yhh35998011f1e8
diff --git a/desktop b/desktop
index e38c62afd..f51cab27e 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit e38c62afdf54b8bdcb1c16cdb3c597bbedf03024
+Subproject commit f51cab27ee3f458338b3280f44ff1deb4de7daae
diff --git a/pipeline/src/project/format.ts b/pipeline/src/project/format.ts
index e5a3c6347..5556fc39b 100644
--- a/pipeline/src/project/format.ts
+++ b/pipeline/src/project/format.ts
@@ -540,6 +540,13 @@ export function isTransientProjectPath(rel: string): boolean {
/** Editor-local, transient state (`.esengine/workspace.json`; gitignored). */
export interface WorkspaceState {
+ /** Project-local editor display preferences; never included in game exports. */
+ viewportGizmos?: {
+ show: boolean;
+ selectedOnly: boolean;
+ iconSize: number;
+ types: Record<string, { icons?: boolean; gizmos?: boolean }>;
+ };
lastOpenedScene?: string;
/** The dock arrangement, as dockview serializes it. */
panelLayout?: unknown;