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

uGUI

-

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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.