I have the following tree structure in my scene:
VerticalBox
├─ Horizontal separator
├─ ResetButton
└─ BackButton
I now have to add a list of buttons - only known at runtime - to the vertical box in the order as stated by the list and before the horizontal separator.
- Using
AddChildputs the button at the bottom of the vertical box. - Using
AddSiblingwould put the button at best underneath the separator and in a reverse order.
Using a dummy component above the separator, reversing the list, adding siblings to the dummy components and then removing the dummy component might work, but this feels like a workaround.