Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering UI Development with Unity

You're reading from   Mastering UI Development with Unity An in-depth guide to developing engaging user interfaces with Unity 5, Unity 2017, and Unity 2018

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781787125520
Length 468 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Dr. Ashley Godbold Dr. Ashley Godbold
Author Profile Icon Dr. Ashley Godbold
Dr. Ashley Godbold
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
1. Designing User Interfaces FREE CHAPTER 2. Canvases, Panels, and Basic Layouts 3. Automatic Layouts 4. The Event System and Programming for UI 5. Buttons 6. Text, Images, and TextMesh Pro-Text 7. Masks and Other Inputs 8. Animations and Particles in the UI 9. World Space UI 10. Mobile-Specific UI 1. Other Books You May Enjoy Index

Fitters


There are two fitter layout components. These components make the Rect Transform of the object on which they are attached fit within a specified area.

Content Size Fitter

The Content Size Fitter component allows you to force the size of the parent to fit around the size of its children. This fitting can be based on the minimum or preferred size of the children.

To add a Content Size Fitter component to a UI object, select Add Component | Layout | Content Size Fitter from within the object's Inspector. The Content Size Fitter component has the following properties:

You can choose the following properties for the Horizontal Fit and the Vertical Fit:

If the Unconstrained property is selected, Content Size Fitter will not adjust the size of the object along that axis.

If the Min Size property is selected, the Content Size Fitter will adjust the size of the object based on the minimum size of the children. This minimum size is determined by the Min Width and Min Height properties of the Layout...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images