Question by
MansurIschanov · Jun 06, 2021 at 05:26 AM ·
button trigger eventsevent triggering
Change TMP text color through event trigger
I have a TMP button that uses event trigger component.
On PointerEvent enter I want to change the color of the TMP text that is a child of above button.
I tried creating a color gradient preset and passing it as an argument to a function as shown below, but it didn't work.
Tl;dr: How can I change the color of TMP text using event trigger component on it's parent button?
capture.png
(17.4 kB)
Comment
Your answer
Follow this Question
Related Questions
[Help] Event Trigger buttons not working? 1 Answer
Triggering UI button onmousedown, without waiting for mouseup event? 1 Answer
Refrence another text object from within a script involving PointerEnter and PointerExit 1 Answer
TouchScreen Controls? 0 Answers
How do I make my character jump by making a sound into my phone mic? (Using C#) 0 Answers