150f30f56c3148a9b6b42ff7af033976f4ce8bf5
The editor-only pixel-art tuner self-spawned via [RuntimeInitializeOnLoadMethod] + DontDestroyOnLoad into EVERY scene, not just DevSandbox, and its OnGUI draws the toggle button on every IMGUI pass BEFORE the `!_open` early-out. IMGUI dispatches at least Layout+Repaint per frame, so it allocated continuously during normal gameplay — it is a MonoBehaviour, so an ECS system-toggle sweep never touched it, and it dominated this session's allocation profiling until it was found. Now gated behind an EditorPrefs opt-in with a checked menu toggle, mirroring `ProjectM/Boot Into Menu (Editor)`. Off by default. Separately: because the object carries HideFlags.DontSave it SURVIVES play-mode exit while the static _instance does not, so the old code leaked one instance per domain reload — two live strays were found and cleared in the editor. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
yaml
98.9%
json
0.8%
C#
0.3%