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

Masks

Masks affect the visibility of objects within their shape. If an object is affected by a mask, any part of it outside the mask's restricted area will be invisible. The restriction area of a mask can either be determined by an image with the Mask component or a Rect Transform with the Rect Mask 2D component.

With UI, masking is primarily used for scrolling menus, so items that exist outside of the menu's area will not be visible. However, it is also used to cut out images. For example, the following image shows a cat's image being cut out by a circular mask:

Circular Mask Example in the Chapter7Text Scene

You may note that the edges ...

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