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
- Crash on AudioMixer::GetFMODChannelGroup when entering Play Mode in a specific project
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
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