How would I prevent overlapping UMG widgets?

Hello.

So I’m trying to get my UMG widgets to “stack” (using World of Warcraft’s term for nameplate stacking).
Essentially what I’m trying to do is this.

I thought I would be able to do this by using some trickery with grids in UMG, but to no avail.

Do you guys have any ideas? :>

I will start by googling ‘2d rectangle packing’

Thanks, I’ll take a look. :>

Try “Wrap Box” Panel in UMG, May help.