How do you change the horizontal alignment of a vbox container?

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

I have a vbox container of buttons, the bottom of which is wider than all the rest. As this is the case, the top buttons all align themselves at the left side of the vbox container. I would like them to align themselves on the right side, but I can’t manage to make it work. What am I missing?

:bust_in_silhouette: Reply From: Gluon

You could try


you obviously need to change the vboxcontainer in the above to whatever the name of your actual vbox node is of course.

For a definition of the available values, see the AlignMode enums here:

BoxContainer — Godot Engine (stable) documentation in English

jgodfrey | 2022-06-21 13:34