引言
-
上一篇文章介绍了Content Size Fitter(内容大小调整器)
-
那本篇博客就来讲一下UGUI布局元素 Layout Element
-
包括官方介绍和一个示例演示学习
官方介绍: If you want to override the minimum, preferred, or flexible size of a layout element, you can do that by adding a Layout Element component to the GameObject. A layout controller allocates width or height to a layout element in the following order:
- First, the layout controller allocates the minimum size properties (Min Width, Min Height).
- If there is sufficient available space, the layout controller allocates the preferred size properties (Preferred Width, Preferred Height).
- If there is additional available space, the