C
C
Chvalov2016-04-05 00:54:38
Game development
Chvalov, 2016-04-05 00:54:38

How to change text color for button on hover and click in Unity3D?

I ran into a problem, since my buttons will have no background (images), only tex, I can’t set the text color when hovering and clicking.
eb21eecee5164de6a940844455a0f63d.png
Is it possible to somehow cheat in the inspector and apply the desired effect to the text instead of the image?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2016-04-05
@Chvalov

Button has a targetGraphic parameter , drag your text there and that's it.
rLFkS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question