📢引言
-
上一篇文章介绍了Content Size Fitter(内容大小调整器)
-
那本篇博客就来讲一下UGUI布局元素 Layout Element
-
包括官方介绍和一个示例演示学习
🌍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 suffici

本文主要介绍了Unity中的UGUI布局元素Layout Element,包括其功能、官方介绍和一个简单的使用示例。Layout Element允许开发者覆盖布局元素的最小、首选或灵活大小,并在布局控制器中分配空间。此外,还提到了Ignore Layout选项,用于使布局元素不受布局控制器影响,以便自由调整位置和大小。
订阅专栏 解锁全文
1万+

被折叠的 条评论
为什么被折叠?



