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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.