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
- Missing script error when clicking “script” link in Cave scene’s Water Sample Description
- [VFX Graph] Set Position Shape Gizmo isn't refreshed after shaper switch
- NullReferenceException is thrown when trying to access volumeStack from the HDCamera class
- Visual artifacts appear when using an Orthographic camera with a Reflection Probe
- Not all animation properties are accessible when a prefab with an avatar model contains a nested copy of itself with a renamed GameObject
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.