I recently created a type of grid, using a UIListLayout to space out the lines evenly on the X plane. The problem is, the UIListLayout does not seem to be spacing my lines accurately.
I have a bunch of grey lines, and a bunch of pink lines.
The pink lines should only occur 1 time for every 4 grey lines.
For some reason, when I set padding on the pink lines to 4 times the grey line padding, it does not stay even to the grey lines.
Padding is the distance between the edges of the lines, not from their center point. This means that the thickness of the lines will make the grey and pink lines slowly desync. Here’s a very scientific picture: .
You can change the padding value of the UIListLayout through a script so the offsets are correct. For example, for the pink lines the padding should be set to something like