Creating a new project, activating “Maximize On Play” in the Game window and pressing Play causes Unity to display the following error:
Invalid editor window UnityEditor.FallbackEditorWindow
UnityEditor.EditorApplicationLayout:SetPlaymodeLayout()
Please see video that I attached to the bug-report.
I believe the error is caused by having had a different project opened before that uses custom editor windows. Using “Windows/Layout/Default” often fixes the error, but it comes back once a project with custom editor windows was open.
Reproduce
- Open any project that uses custom editor windows in its layout
- Open attached project from this bug-report
- Focus Game window and activate “Maximize On Play”
- Press Play
Observe the editor outputs an error message.
Expected
No error when maximizing the Game window.