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?

in Engine by (397 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.

by (28,789 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.