Search Issue Tracker
By Design
Votes
1
Found in
2017.4
2018.4
2019.1.3f1
2019.2
2019.3
2020.1
Issue ID
1217348
Regression
No
ArgumentException Getting control position on repaint is thrown when the opened window uses GUILayout Horizontal/Vertical/Scroll
How to reproduce:
1. Open attached project "Tree View.zip"
2. In Editor, open TreeView Examples -> Custom Row Heights
3. In Project window, create a c# script (wait for the script to compile)
4. Observe Console window
Expected result: no errors are thrown
Actual result: ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint is thrown
Reproducible with: 2017.4.36f1, 2018.4.17f1, 2019.2.21f1, 2019.3.1f1, 2020.1.0a22
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (2020.2.X):
Mixing both automatic and fixed layouts is allowed only in OnGUI function.
The user script CustomHeightTreeView.cs uses fixed layout and then user is trying to use GUILayout.HorizontalScope which shouldn't work in RowGUI as user can't mix GUILayout code and in a section that is rect based.
https://docs.unity3d.com/Manual/gui-Layout.html