Dynamically adding children to a scroll box?(From the top down?)

This is one of my pet peeves, such a weird omission in UMG.

it will be added to the bottom.

I believe you mean to the ‘top’, seeing how you’re forced to use the array insertion workaround. Not sure why the loop is not iterating (no need to cast, btw) - maybe it is but the children do not appear?


Do consider the following alternative, there’s a hack that works surprisingly well:

  • add a Vertical Box to the Scroll Box and rotate it 180
  • when adding children, add them to that Vertical Box instead, and also rotate them 180

This way the Scroll Box behaves normally (since it is not rotated) and new elements pop in at the top. And you do not need to fiddle with an array or clear the container:

Image from Gyazo

…such a weird omission in UMG.


edit:

From the bottom up

Or is literally from the bottom up, as in the container is aligned to the bottom and new notifications push the stack upwards?!