Edit this page
VBoxContainer
Arranges Control children vertically from top to bottom.
Inherits: Container → Control → Node2D → Node
Properties
VBoxContainer
| Property |
Type |
Default |
Description |
spacing |
number |
4 |
Vertical gap between adjacent children in world units. |
alignment |
str |
"begin" |
Main-axis alignment when children do not expand to fill the container. |
Control
| Property |
Type |
Default |
Description |
size |
vec2 |
(100, 40) |
Bounding box size in world units. |
color |
color |
#ffffffff |
Fill color as sRGB hex with alpha, e.g. #ffffffff. |
font_size |
number |
16 |
Text size in world units; scales with camera zoom. |
font |
str |
"" |
Path to a .ttf or .otf font file; empty uses the project default font. |
custom_minimum_size |
vec2 |
(0, 0) |
Minimum size enforced by parent layout containers. |
size_flags_horizontal |
str |
"fill" |
Horizontal sizing policy inside a parent container. |
size_flags_vertical |
str |
"fill" |
Vertical sizing policy inside a parent container. |
Node2D
| Property |
Type |
Default |
Description |
position |
vec2 |
(0, 0) |
Local position in world units, relative to the parent. Global position is this plus every ancestor's. |
rotation |
number |
0 |
Rotation around the node's origin. Stored in radians; the inspector edits degrees. |
z_index |
int |
0 |
Draw order index. Nodes with higher values are drawn on top. Ties fall back to tree order. |