How it works...
You have created a button, and set its Transition mode to Animation. This makes Unity require an Animation Controller with four states: Normal, Highlighted, Pressed, and Disabled. You then made Unity automatically create an Animation Controller with these four states.
Then, you edited the Animation for the Highlighted (mouse-over) state, deleting the second keyframe, and making the only keyframe a version of the Button made larger to a scale of 1.2.
When the mouse is not over the Button, it's unchanged and Normal state settings are used. When the mouse moves over the Button, the Animation Controller smoothly in-betweens the settings of the Button to become those of its Highlighted state (that is, bigger). When the mouse is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access