Change colors for beginners

How can I change the color of a button via script?
I know, that this was aked 100000000 times but nothing worked.
here is an image:

If I click “Nächste Runde” the Script -ChangeColor" shall change the color of the first button to red.

In the script create a public Image firstButton; variable.

Then in the inspector an empty field called “First Button” should be available. Drag the button in your hierarchy that you want changed into that empty field.

NOW, in your script where the button is supposed to be changing color… Put in
firstButton.color = Color.red;

Hope this helps :slight_smile:

Oh man that Sounds so easy. :slight_smile: ill try.