Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | XavierGerD |
Hi,
I’m trying to build a scrolling bar the contains different sized buttons:
As you can see, if I use the separation
attribute of HBoxContainer, the buttons are evenly spaced, creating irregular gaps between each other.
I have tried all sorts of combination of Size Flags
and Stretch Ratio
. I haven’t been able to:
- get the buttons to space according to their size (with a small margin between each) and
- keep the box scrollable.
The HBoxContainer
is placed inside a ScrollContainer
and each button is subsequently added as a child of the HBoxContainer
in the scripts.
At this point any help would be welcome!
Thanks