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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
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.