Search Issue Tracker
Active
Votes
0
Found in
2021.3.44f1
2022.3.50f1
6000.0.23f1
Issue ID
UUM-84114
Regression
No
EditorGUILayout.LabelField displays black text when the "EditorStyles.whiteBoldLabel" parameter is passed in
How to reproduce:
1. Create and open a new project
2. Import the “LabelFieldExample.cs“ Script
3. Open the “Example > Editor GUILayout Label Usage“ Window in the Toolbar
4. Observe the Custom Editor Window
Expected result: The text is white and bolded
Actual result: The text is black, but bolded
Reproducible in: 2021.3.44f1, 2022.3.50f1, 6000.0.23f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- It seems, the style is deliberately making the text white, because by default the unstyled color is gray
- the “EditorStyles.whiteLabel” parameter colors the text white
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Motion Blur has sharp edges when object is moving in the foreground of another object
- EditorGUILayout.LabelField displays black text when the "EditorStyles.whiteBoldLabel" parameter is passed in
- The UI Toolkit TreeView Items get clipped when resizing the Game view window when Scale with Screen Size is set as the Scale Mode in the Panel Settings
- Components of a Prefab instance lose their values that are updated with the Reset() method when entering Play Mode
- Universal 3D Sample project template takes a very long time to build.
Add comment