Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.1f1
Issue ID
949362
Regression
No
EditorGUILayout.PrefixLabel is too large when the scrollbar is visible in the inspector
How to reproduce:
1. Download attached project and open "Main" Scene
2. Select the GameObject named "GameObject" to display the SomeMonoBehaviour editor in the inspector (Notice how all fields are properly aligned)
3. Check the "Force Scrollbar" checkbox (the scrollbar should appear unless you have a ridiculously tall screen, in that case, try to make the scrollbar appear in the inspector window)
4. Notice how only the EditorGUILayout label field did not move and is now misaligned with the other methods
Expected result: EditorGUILayout.PrefixLabel should not give different results than EditorGUI.PrefixLabel and EditorGUILayout.Label
Actual result: When using EditorGUILayout.PrefixLabel, if the scrollbar is visible in the inspector, the subsequent field is not moved to the left to accommodate the change in width.
Reproduced with: 5.5.4p3, 5.6.3p3, 2017.1.1p1, 2017.2.0b11, 2017.3.0a7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- TileMap selection resets to the default when the Scene is saved
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
Add comment