您当前的位置: 首页 >  unity

呆呆敲代码的小Y

暂无认证

  • 5浏览

    0关注

    385博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity零基础到进阶 ☀️| 【UI系统学习】UGUI布局元素 Layout Element 介绍 和 简单示例

呆呆敲代码的小Y 发布时间:2021-07-12 08:43:46 ,浏览量:5

引言
  • 上一篇文章介绍了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 sufficient available space, the layout controller allocates the preferred size properties (Preferred Width, Preferred Height).
  • If there is additional available space, the
关注
打赏
1663854676
查看更多评论
立即登录/注册

微信扫码登录

0.0497s