- Mastering UI Development with Unity
- Ashley Godbold
- 195字
- 2021-08-27 18:43:19
Flexible Width and Height
The Flexible Width and Flexible Height properties represent a percentage, where the percentage is the size of the child relative to the other children. Since these values are percentages, a value of 0 would represent 0% and a value of 1 would represent 100%.
As with the Preferred Width and Height, this setting doesn't work as expected unless the Child Force Expand property is deselected. In the following example, the two Panels and children have nearly identical settings. The only difference between the two is that the top parent Panel has the Child Force Expand Width property selected and the bottom parent Panel does not. So, you can see that the values set for Flexible Width of the children are ignored if Child Force Expand Width is selected on the parent:

The children in the preceding diagram have the following Flexible Width settings, from left to right: 0, 0.5, 0.75, 1, and 1.5. You can see that the children have scaled relative to each other based on the percentages. The first child is not visible because it has a Flexible Width of 0.
- Functional Python Programming
- Web Scraping with Python
- AngularJS Web Application Development Blueprints
- VMware vSphere 6.7虛擬化架構(gòu)實戰(zhàn)指南
- Python機器學習編程與實戰(zhàn)
- .NET 3.5編程
- Access 2010數(shù)據(jù)庫應用技術(第2版)
- Python 3 Object:oriented Programming(Second Edition)
- Learning Python Data Visualization
- Unity 2017 Game AI Programming(Third Edition)
- ArcPy and ArcGIS(Second Edition)
- ASP.NET jQuery Cookbook(Second Edition)
- Tkinter GUI Application Development Blueprints
- Learning ClojureScript
- Java到Kotlin:代碼重構(gòu)指南