Dynamic UI layout similar to the default backpack hotbar

I’m making a custom UI that at a baseline is meant to serve the same functions as the default Roblox backpack and hotbar but I’ve been running into some formatting issues. As of now my inventory hotbar is more or less formatted like this:


when my goal is something more similar to this:

If it were a static amount of items, this wouldn’t be an issue, but since the player can have up to 10 items in their hotbar I have to dynamically change the position and have no idea how to go about this in a way in which I’d get my desired result. If anyone could so much as point me in the right direction that would be greatly appreciated.

1 Like

You just need to add a UIListLayout and set its HorizontalAlignment to Center.

1 Like

And FillDirection set to Horizontal

2 Likes

thanks a bunch, wish i could mark both of your replies as solutions

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.