I'm currently working on an inventory system and when i have 1 item on the scene. I have no issues, i can move it to any slot on the inventory but, as soon as i add more than one it breaks. When the newly added ones are placed in a slot, they are offset to the right by which one they were (The second one would be shifted to the left by one and the third by 2)




The neon square is where the apple on the right should have been placed
I can't find any immediate issues in my code. Any help would be amazing!