Unity Issue Tracker - Button color is not changing when hovering/clicking on it if the Background color was changed
Closed
UUM-7678
Button color is not changing when hovering/clicking on it if the Background color was changed
Unity: UI Toolkit Controls
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
Port canceled as we transition to 2022.2 (2022.2.X port is active or already resolved)
This would have to be fixed in the UI Toolkit package which we are not covering -- please use Unity 2021LTS or more recent to get this fixed.
How to reproduce:
1. Open project "UIToolkitIssue.zip"
2. Open "SampleScene" Scene
3. Enter Play Mode and hover/click with a cursor on the "Button" Button
4. Observe the Button
5. Exit Play Mode and open "Menu.uxml" file (Assets > Resources > Menu)
6. Select Button and change the Background color
7. Save UI Builder and repeat the 3rd and 4th steps
Expected result: Button color changes when hovered/clicked
Actual result: Button color is not changing when hovered/clicked
Reproducible with: 1.0.0-preview.18 (2020.3.36f1), 1.0.0 (2021.3.4f1, 2022.1.5f1, 2022.2.0a17)
Could not test with: 2019.4.40f1 (Errors after project downgrade)
Reproduced on: macOS 11.6 (Intel)
Note: Reproducible in the Editor and in the Player
Prioritise and Follow this issue
Have a workaround or additional info about this issue?