Spacing 表示 每個 Item 之間的距離。
Child Alignment 表示對齊方式。
Child Force Expand 表示 自適應 寬 和高
使用了 列表之后 ,它的每一個子物體都不能設置 Rect Transform ,如圖
可以使用 Layout Element
Ignore Layout : 為了不計算隱藏的cell 所以要先把 IngonreLaytout = true 再 setActivity = false 這一切都可以在代碼里面來設置。
Min Width : 最小的寬度
Min Height
Preferred Width : 優先使用的寬度
Preferred Height
Flexible Width : 可變的 寬度
Flexible Height
列表中 控制滑動效果:
Scroll Rect 控件
Mask 控件