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
- [MacOS] Invalid Code Signing Entitlements errors appear when signing MacOS project for App Store
- Missing UNITY_MATRIX_IT_MV definition in HDRP shaders
- ScrollRect panel not resizing correctly to fit text
- Scroll bar doesn't show full text
- [Linux] AutoLocale: current locale expects 'C' but got error is thrown when starting a project
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