Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.4
2021.1
2021.1.0a2
Issue ID
1289223
Regression
No
GUILayout.BeginHorizontal or .BeginVertical does not warn for imbalances
How to reproduce:
1. Open the user's attached project("BugReportReorderableList.zip")
2. Open "BrokenEditorWindow.cs"
3. Notice GUILayout.Begin... and GUILayout.End.. are unbalanced
4. In the Editor select Bug > Open Window
Expected results: "GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced." is thrown
Actual results: No GUI error indicating unbalanced GUILayout
Reproducible with: 2018.4.29f1, 2019.4.14f1, 2020.1.14f1, 2020.2.0b11, 2021.1.0a6
Note: doesn't reproduce with .BeginArea, .BeginScrollView
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
- Play Mode button is shown in hovered state when saving a script and immediately clicking the Play Mode button to focus the Editor
- “The operation "SoftDelete" cannot be executed because the selection is a root folder.” warnings appear when deleting the favorite with the keyboard
- Code links open incorrect line on code editor or are unclickable when the log is around 100 lines
- Standalone Player unresponsive/frozen in HDRP when built using Vulkan Graphics API on specific GPUs
- Scene View flickers when the Game View Tab is docked next to the Scene View Tab and graphics API is set to Direct3D11
Resolution Note (fix version 2021.2):
Fixed in Unity 2021.2.0a4 and newer