Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.2.3f1
Issue ID
747167
Regression
No
[PrefixLabel] Prefix label is affected by color change made to its control
Steps to reproduce:
1. Open attached project
2. Open "/Assets/Editor/BrokenGUIColorEditor.cs" script
3. Notice that it: 1) creates PrefixLabel 2) changes GUI.color 3) creates ObjectField
4. Open scene "Main" and select BrokenGUIColor in hierarchy
5. Actual result - Notice that PrefixLabel and ObjectField are red although GUI.color is set after PrefixLabel is created
Expected result - PrefixLabel isn't affected by color changes made to its control (ObjectField)
Comments (1)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
arelian11
Apr 29, 2016 22:29
Note that as of 5.3.4p1, this issue is actually reversed - PrefixLabel isn't effected by any colors at all.
Color color = GUI.color;
GUI.color = Color.yellow;
EditorGUI.PrefixLabel("test");
GUI.color = color;
Does not change the color of the PrefixLabel to yellow.