To display 2 widgets i’m using ‘add child to horizontal box’ so they appear side by side. However, the distance between they is very large. How do I decrease this gap so they appear closer to each other?
I saw another post that added a ‘set padding’ to it and ‘make margin’, this worked. Another question, do you know how to remove the ‘add child to horizontal box’? it has no ‘remove from parent’ option.
And how do I remove all the children? This will work too, thanks.
I think it’s just called “Clear all children” or “Clear children”. Some permutation of those terms.
That return value is a reference to a horizontal box slot, not the horizontal box.
Oh I see, I got confused. The ‘horizontal box’ has a remove from parent option, thanks.
You can remove any child from any container either by index or by-ref:
Widget can also remove Self from any container they’re in with Remove From Parent
, that includes the viewport. As below:
The ‘horizontal box’ has a remove from parent option, thanks.
That would remove the horizontal box itself, be careful