I have a very simple EditorWindow built using UiBuilder.
This has happened twice now, after hours of development, suddenly ‘CreateGUI’ stops being called, and I have no way of fixing it, last time I had to clear the project and start from scratch.
I have confirmed my GetWindow() static function is getting called, but neither OnEnable nor CreateGUI gets invoked after that. And I can’t see any errors in the console…
How can I debug this?
I really don’t want to start the project again, but I can’t get my editor window back
This is a BUUUUGGGG that should be addressed, spent hours tracking this down in 2021 and i see references to it back to 2014 or earlier.
At some point when developing UI for the editor unity caches a bad or offscreen or whatever version and there is ZERO indication as to what is going on.
Changing layouts is the ONLY way to fix this and yet is clearly a bug, not something a teammate did wrong. Works for others but not for them, etc. Impossible to find root cause until you google enough and everyones time is wasted, no bueno.
Hello, I would like to ask what it means to **switching the layout?**I resized the size and order of the elements, but it didn’t work.I want to know what to do to make my window display normally.Thanks!
@tongshuqi Could you submit a repro project through the bug reporter? You can find it under Help>Report a bug… Thanks!
Please also include the files under
C:\Users<username>\AppData\Roaming\Unity\Editor-5.x\Preferences\Layouts