Color Tint

The Color Tint Transition type will make the button change color based on its state. You assign the Normal Color, Highlighted Color, Pressed Color, and Disabled Color.

In the following example, you can see that the button changes to the color green when the mouse is hovering over it (hence, highlighting it) and turns red as the mouse is being pressed down on it:

Color Swap Example in the Chapter5Text Scene

If you view the preceding example, you'll note that the button turns green after it is clicked on and when the button is no longer being hovered over. This is because a button is in the highlighted state when it is the last button ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.