Easier spacing of elements with UIGridLayout

It’s currently difficult to spread out elements using UIGridLayout given an arbitrary amount of space available to fill. If there is not enough room to fill an entire cell space, but there is room left, I have to use scripts to find out how much room is left and adjust the padding based on how many elements are in that row/column. I feel like this should be a built-in behavior option.


Here’s some screenshots to elaborate what I believe OP is talking about.

At certain sizes, the cells fit perfectly using the UIGridLayout:

Where as other sizes have left over space on the right as seen here:

The feature OP requested is asking for the cells to evenly distribute regardless of the UIGridLayout’s parent size. The second image would not happen if OP’s request was to be implemented.


Yep, that’s exactly what I’m asking for! Thanks for the illustration :slight_smile:

One thing you can do is set the CellSize to 0.25 scale and add a UIAspectRatioConstraint to the GridLayout so that you always have 4 columns and everything stays square.

I think adding some sort of “justified” alignment type would be a good idea though, I will look into it when I have time.


No problem!

This would be awesome to have.