Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.2.0b4
Issue ID
1158249
Regression
No
Button colors are not correct when you disable then re-enable the button image component.
Button script colours are not correct when you disable then re-enable the button image component.
Steps to reproduce.
- Open Unity 2019.2.0b4
- Create a Canvas in the Hierarchy
- Add a button (Create > Ui > Button)
- In the Inspector change the Button - Normal Color to black.
- In the Inspector disable then enabled the Image component
Notice Issue >> The colour has been reset to white but button script is set to black.
Broken: 2020.1.0a9, 2019.2.0b4, 2019.2.0a11, 2019.2.0a1, 2019.1.2f1
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
- 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 with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (2020.2.X):
Its kind of by design in terms of the image knows nothing but its own data, and the button is the one controlling the image's color.
OnEnable the image sets its color but the button overrides it, Issue is the button has no knowledge about the image enabled state change.
If there is no real workflow where this is a issue likely wont fix it although (its a bug) as it would involve a change in design principles.