Hey guys, I’m attempting to make a simple array of objects based on their x and y position. Been having some brain farts back and forth so figured I’d take a stab on here.
Their positions are not snapped to a grid, so I’m unable to use their transform position values. What’s the best way to fill the array based on position relative to one another?
Unless the positions don’t have an one to one relation with int pairs you can’t. At least I can’t think of a viable way to do this.
Question is why, given the lack of absolute positions?
This is what I was initially thinking, but my grid objects can be less than a unit in size: IE I could have one at (1x,1y) another at (1.2,1.2) then (1.4,1.4). Wanting to sort that to [1,1][1,2][1,3]
With dynamic starting sizes, though. So that same grid could be (1x,1y) (1.4,1.4) (1.8,1.8)
I dunno I’m all over the place I may need to rethink things