Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2019.1.0a1
2019.1.8f1
2019.2.0a1
2019.3.0a1
Issue ID
1166310
Regression
No
Button Normal Color does not update when is changed in runtime via script
How to reproduce:
1. Open the attached 'UIcolorBug.zip' project
2. Open 'SampleScene'
3. Enter Play mode
4. Click on the 'Click' button
5. Observe the Inspector
Expected result: Button color is changed
Actual result: The normal color property is changed in the Inspector, but the button stays at the same color
Reproducible: 2017.4.29f1, 2018.4.3f1, 2019.1.8f1, 2019.2.0b8, 2019.3.0a8
Notes:
- Documentation script reference https://docs.unity3d.com/ScriptReference/UI.ColorBlock-normalColor.html
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note (2019.3.X):
After you click the button the button is in its Selected state. The color represented is proper for the item being selected. Click off of the button and it will go invisible as the Normal color assigned has no alpha. If you set a alpha properly as well you will see that it is red.