How to use containers

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby

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?

:bust_in_silhouette: Reply From: Zylann

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.

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

Newby | 2018-07-23 22:39