UI not updating

Hi
I am trying to get a button click event to update a bool on clicked and for the bool to dictate the colour of the button on tick. I have the UI showing in game and the button appears to receive a click but nothing happens and the on tick event never updates the colour as if I set the bool to true it does not update the colour of the button. Any ideas where I am going wrong?

Set Color and Opacity affects children of the button only, not the button itself. If you want to change the button itself, look into styles (Normal, Hovered, Pressed… and so on):

For each button style there is Tint which controls button colour separately. Btw, this is not something you want to do in Tick. Why not use FlipFlop when you press the button.


There is some inconsistency in the naming convention here; for other widgets this option reads Content Color and Opacity hence the confusion. It reflects the functionality much better. The tooltip is correct, though.

Thank you all good now. I am using flipflop as suggested.