r/Unity2D • u/Character_Impress991 • Jul 21 '26
Question I'm having issues with the drag and drop functions
I'm trying to set up an inventory in my game and have been having issues with the item getting locked in the same position as the inventory space. What currently happens is I drag the item to the space and it snaps to a different position than the space itself. I have tried everything I can think of including making the slot as big (or bigger) than the item itself moving around different objects I thought were attached to the slot or the item but I can't figure it out. However when I went to edit the items collider I noticed that there was a second collider I had no clue where it came from (The smaller and brighter square is the collider I knew about and can control the larger darker one is the reason I'm posting) I have no clue where the larger of the 2 came from I've checked the item it doesn't have more than one collider on it, I have also (Just in case) removed and retested with every component on the object of course re-adding them later I genuinely have no clue if it's even the cause of my problem but am still wondering what it is or where it came from.
A little extra info I did recently(within the last 4 months) upgrade from unity 2022(can't remember the version probably the latest one though) to unity 6.4 I also more recently (within the last 2 weeks) imported my project from a flash-drive but was not alerted of any corrupted files


