- Home /
Unity uGui change source image on event
I know how to use events on the new uGui to handle certain methods, but how do I go around changing the source image on let's say pointer enter or exit(basically setting hover and click sprites for my buttons)
Comment
Best Answer
Answer by AyAMrau · Aug 24, 2014 at 10:17 PM
In the button component there is a field called Transition. If you set it to SpriteSwap you will be able to add additional sprites for Highlighted, Pressed and Disabled states.
Your answer

Follow this Question
Related Questions
A node in a childnode? 1 Answer
Script Reference using C # 1 Answer
Error CS0016 in Unity? 0 Answers
Make Health script lose health when certain animation is played? 1 Answer