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

2015-07-20 17:39:04 · 作者: · 浏览: 6

?

?

?

5、Auto Layout

?

?

?

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

?

?Content Size Fitter

?

?Layout Element

?

?Horizontal Layout Group

?

?Vertical Layout Group

?

?Grid Layout Group

?

?

?

5.1 Content Size Fitter

?

Properties

data-cke-saved-src=https://www.cppentry.com/upload_files/article/49/1_5wivm__.png

?

Property :

?

Horizontal Fit

?

Vertical Fit

?

?

?

5.2 Layout Element

?

Properties

data-cke-saved-src=https://www.cppentry.com/upload_files/article/49/1_qo5vc__.png

?

Property :

?

Min Width

?

Min Height

?

Preferred Width

?

Preferred Height

?

Flexible Width

?

Flexible Height

?

?

?

5.3 Horizontal Layout Group

?

Properties

data-cke-saved-src=https://www.cppentry.com/upload_files/article/49/1_srtuw__.png

?

Property:

?

Padding

?

Spacing

?

Child Alignment

?

?

?

5.4 Vertical Layout Group

?

Properties

data-cke-saved-src=https://www.cppentry.com/upload_files/article/49/1_neydw__.png

?

Property:

?

Padding

?

Spacing

?

Child Alignment

?

?

?

5.5 Grid Layout Group

?

Properties

data-cke-saved-src=https://www.cppentry.com/upload_files/article/49/1_toisa__.png

?

Property:

?

Padding

?

Cell Size

?

Spacing

?

Start Corner

?

Start Axis

?

Child Alignment

?

?

?

??