Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.21f1
2021.2.0b15
2022.1.0a10
2023.1.0a1
2023.2.0a1
Issue ID
UUM-3441
Regression
Yes
[Windows] EndLayoutGroup error is thrown when closing a SaveFilePanel invoked from within a GUI Scope
Reproduction steps:
1. Open the user's attached project ("GUILayoutError.zip")
2. Select a GameObject from the Hierarchy window
3. Click the "Button" in the Inspector window
4. Close the SaveFilePanel (Click Cancel, Save, X or hit the ESC key)
Expected result: There are no errors in the Console window
Actual result: An error is thrown:
EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEngine.GUI/Scope:Dispose ()
Reproducible with: 2020.3.21f1, 2020.3.24f1, 2021.2.0b15, 2021.2.5f1, 2022.1.0a10, 2022.1.0b1
Not reproducible with: 2019.4.33f1, 2020.3.20f1, 2021.2.0b14, 2022.1.0a9
Notes:
1. If it doesn't reproduce, try repeating steps 3-4
2. Reproducible on Windows, a similar issue exists on macOS: https://issuetracker.unity3d.com/product/unity/issues/guid/1386486/
Workaround: Adding GUIUtility.ExitGUI(); after invoking the SaveFilePanel
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
We can only fix IMGUI critical issues with no workarounds at this time as we are shifting focus on UI Toolkit. Please follow the workaround.