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

Sprite Swap

The Sprite Swap Transition type will make the button change to different images for different states.

You'll note that there is no property to assign a sprite for the normal state. This is because the normal state will just use the sprite assigned to the Image component.

The sprite sheet we imported in Chapter 2, Canvases, Panels, and Basic Layouts, containing our UI images has four button images that will be helpful in demonstrating the Sprite Swap Transition: the images labeled uiElement_39, uiElement_40, uiElement_41, and uiElement_42 (as shown in the following screenshot):

To have the button take on these images at the appropriate ...

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