Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GridContainer
繼承: Container < Control < CanvasItem < Node < Object
將子控制項按照網格佈局排列的容器。
說明
GridContainer 會將其子控制項按照網格佈局排列。網格的列數由 columns 屬性指定,行數取決於容器中子控制項的數量。將保留每個大小的容器的列和行。
注意:GridContainer 只對繼承自 Control 的子節點生效。它不會重新排列繼承自 Node2D 的子節點。
教學
屬性
|
主題屬性
|
||
|
屬性說明
GridContainer 中的列數。修改後,GridContainer 會重新排列其衍生自 Control 的子節點,以適應新的佈局。
主題屬性說明
The horizontal separation of child nodes.
The vertical separation of child nodes.