UI Grid Sizing Calculation

I was making a UI minigame that involved having different grid sizes, but I couldn’t figure out how to calculate the UIGridLayout cell sizing.

What I have:

local gridSize = 10
minigameFrame.Holder.UIGridLayout.CellSize = UDim2.new(1 / gridSize, 0, 1 / gridSize, 0)

It ends up being 11 columns and 9 rows instead of 10 rows and 10 columns :frowning:

Please, if you are attempting to help, send code snippets so I could better understand and learn.
If you need anything else, I will try to provide.

Fixed it, just decided to manually make a grid.

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