HorizontalAlignment strange behavior

Hi i’m making an upgrade boards ui for my game but there is strange behavior of
HorizontalAlignment property in UIListLayout.

As you can see in the video when there is more then 4 upgrades and HorizontalAlignment is “center” first upgrade is clipping left alot but with “left” it is perfect.

The thing is that with less than 4 upgrades center alignment looks better and will be easier for players to see and click.

Is there an easier solution then looping thru and checking how much instances is visible to change alignment based on it?

sorry if my english is bad i hope you understand

2 Likes