Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

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 ...

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.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content