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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
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.