M
M
Mark Nikitin2017-10-23 00:46:54
Unity
Mark Nikitin, 2017-10-23 00:46:54

How to change color?

Because I'm stupid. How to change the color of a Button in unity2d. Through a script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kormishin, 2017-10-23
@goblinek

The button has an embedded image, and it has a color.
button.GetComponent<Image>.color = Color.blue;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question