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
- Multiple errors appear when compiling a ShaderGraph shader's code in a specific project
- TextMeshPro memory leak occurs when reloading the scene using Addressables
- Vector3 node has no X, Y, Z outputs when adding Vector3 node in the Visual Effect Graph
- [Android] Error "Blitter is already initialized" is present when Adaptive Probe Volumes are used with OpenGLES3
- VFX Graph effect instance stops rendering when a second instance of the same effect starts 2 frames later
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