0 votes

In tutorials i watch they just say to place the nodes in the container and it will arrange them but for me it just flattens their scale.
how do you set up containers is their some sort of process?

asked Jul 23, 2018 in Engine by Newby (381 points)

1 Answer

+2 votes

Containers indeed only require you to place controls inside them, but they also shrink them to their minimum size, which is zero by default. So if you don't set one, your control will shrink to zero.

You can also play with the size hints: for example, if you want a series of controls to be laid out vertically, but have the last one fill the remaining space, you can use a VBoxContainer and set the last control's size hint to fill, expand.

answered Jul 23, 2018 by Zylann (26,033 points)

So the size edit is the hint in the control inspector of the button or container?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.