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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
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