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

Padding

The Padding property represents the padding around the edges of the parent object's Rect Transform. Positive numbers will move the child objects inward and negative numbers will move the child objects outward.

As an example, the following screenshot shows three panels with various padding values applied. The first Panel has no padding, the second panel has a positive padding on all four sides, and the third Panel has positive padding on the left, right, and bottom but a negative padding on the top:

Horizontal Layout Groups Example 2 in the Chapter3Text Scene
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