(十四)unity4.6学习Ugui中文文档-------参考-UGUI Auto Layout

来源:互联网 发布:网络信息安全观后感 编辑:程序博客网 时间:2024/05/17 02:53

大家好,我是孙广东。   转载请注明出处:http://write.blog.csdn.net/postedit/38922399

更全的内容请看我的游戏蛮牛地址:http://www.unitymanual.com/forum.php?mod=guide&view=my




5Auto Layout




自动布局系统提供方法来将元素放置在嵌套的布局组水平组、垂直的组或网格等中。它还允许自动根据包含的内容大小来调整元素的大小。


Content Size Fitter


Layout Element


Horizontal Layout Group


Vertical Layout Group


Grid Layout Group


 


5.1 Content Size Fitter


Properties



Property :


Horizontal Fit


Vertical Fit


 


5.2 Layout Element


Properties



Property :


Min Width


Min Height


Preferred Width


Preferred Height


Flexible Width


Flexible Height


 


5.3 Horizontal Layout Group


Properties



Property:


Padding


Spacing


Child Alignment


 


5.4 Vertical Layout Group


Properties



Property:


Padding


Spacing


Child Alignment


 


5.5 Grid Layout Group


Properties



Property:


Padding


Cell Size


Spacing


Start Corner


Start Axis


Child Alignment


 



2 1
原创粉丝点击