- Mastering UI Development with Unity
- Ashley Godbold
- 162字
- 2021-08-27 18:43:17
Control Child Size
These Control Child Size options allow the automatic layout to override the current Width or Height of the child objects. If you select it without selecting the corresponding Child Force Expand property, your child objects will no longer be visible (unless it has a Layout Element component with Preferred Width specified).
If you do not set this property, it is possible that the children will draw outside of the parent's Rect Transform, that is, if too many children exist.
This property changes the width and height property of the child objects' Rect Transforms. So, if you select and then deselect it, the children will not go back to their original sizes. You will have to either use Edit | Undo ( Ctrl + Z) or manually reset the size of the children via their Rect Transform components.
Since this property depends on the Child Force Expand property, examples of the Control Child Size property are presented in the next section.
推薦閱讀
- Expert C++
- Java多線程編程實(shí)戰(zhàn)指南:設(shè)計(jì)模式篇(第2版)
- Learning Java Functional Programming
- Monkey Game Development:Beginner's Guide
- JavaScript語(yǔ)言精髓與編程實(shí)踐(第3版)
- React Native Cookbook
- 小程序開(kāi)發(fā)原理與實(shí)戰(zhàn)
- 程序員修煉之道:通向務(wù)實(shí)的最高境界(第2版)
- Linux命令行與shell腳本編程大全(第4版)
- Arduino家居安全系統(tǒng)構(gòu)建實(shí)戰(zhàn)
- Webpack實(shí)戰(zhàn):入門(mén)、進(jìn)階與調(diào)優(yōu)
- Android Sensor Programming By Example
- Machine Learning for OpenCV
- PHP 8從入門(mén)到精通(視頻教學(xué)版)
- 會(huì)當(dāng)凌絕頂:Java開(kāi)發(fā)修行實(shí)錄