Always? For every object? That means there’s something wrong with your GetGridObject function, how are you getting the grid object? Should be accessing the array in the x,z position
If that is correct then perhaps you made a mistake when creating the grid and created the object 0,0 on every position
Then it looks like you probably accidentally set every single gridObjectArray position with a reference to the gridObject on 0,0
Look at the code initializing the grid, cycling through each grid position, how are you assigning the GridObject to the array?
Or maybe you just didn’t assign the X,Z on each Grid Object so it’s defaulting to 0,0