跳到內容

Grid Layout Row

Grid Layout Row 可用於在 Grid Layout Group 中將 Shapes 排列成行。

佈局介紹 →

放置在 Grid Layout Row 下的每個項目將根據父級 Grid Layout Group 下達的大小約束被放入列中。

行不受其他行的影響。一個包含 10 個項目的 Grid Layout Row 可以與一個包含 3 個項目的 Grid Layout Row 一起巢狀在 Grid Layout Group 中。Spacers 可用於在行中建立空白佈局項,以構建均勻列的網格。

Grid Layout Row 只有在與 Grid Layout Group 結合使用時才有用。沒有它,它不會做任何事情。

Shape 在儲存格中的對齊方式可以透過其 Advanced 選項卡下的 Vertical/Horizontal Layout Alignment 選項設定。參見 Common Attributes(Advanced 選項卡)。

請注意,Text Shape 的 AlignmentVertical Alignment 將被這些設定覆寫。

Common Attributes +


Minimum Column Width - 設定行中每列的最小寬度。連接 Value Array 可以為每列設定個別值。

Ordering Policy - 確定 Shapes 在 Grid Layout Row 中的排列順序:

  • Layer Order - 根據 Shapes 在 Grid Layout Row 中的順序排列。層級頂部的 Shape 被視為第一個佈局項。
  • Alphabetical - 根據 Layer Name 字母順序排列 Shapes。
  • Shuffle - 隨機排列 Shapes。

Flip Order - 反轉 Ordering Policy

Shuffle Seed - 當 Ordering Policy 設定為 Shuffle 時,設定隨機種子。