0
Unity Bug

Invalid editor window Editor.GameManager.WorkerSpawnerWindow UnityEditor.EditorWindow:set_maximized(Boolean)

jakuba 2 months ago updated by Lazlo Bonin (Lead Developer) 1 month ago 1

Maximizing the scene view (double clicking) causes an error when using a custom window created with Odin. Not sure if this is Peek or Odin issue, but since the exception is raised inside Peek I assume it's a Peek issue :)

Invalid editor window Editor.GameManager.WorkerSpawnerWindow
UnityEditor.EditorWindow:set_maximized(Boolean)
Ludiq.Peek.SceneMaximizerIntegration:OnSceneGUI(SceneView) (at Assets/Plugins/Ludiq/Ludiq.Peek/Editor/Shortcuts/SceneMaximizerIntegration.cs:41)
Ludiq.Peek.SceneViewIntegration:OnSceneGUI(SceneView) (at Assets/Plugins/Ludiq/Ludiq.Peek/Editor/Integration/SceneViewIntegration.cs:45)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Unity Version:
2020.1.2f1
Peek Version:
1.1.8
Unity Bug

Hi Jakuba,

This is a longstanding Unity bug, which I believe happens when an editor window that existed when maximizing no longer exists when minimizing. AFAIK this is not Peek related per se, but because Peek encourages min/maxing the scene view, it happens more often.

Try this to fix it:

  • Load any of your layouts from the layout dropdown
  • If this doesn't work, try Reverting all your layout to default (careful: this is nuclear and will erase all your layouts)

Usually, the first approach works.

Let me know if ever you find a reliable / consistent way of reproducing this issue with Peek.