How can you fill empty cells when dropping an item?

That's odd. The item is pickedup but it doesn't show? Or is the item not pickedup at all?
You can check the state of the Inventory at any time in the Inventory inspector, simply by clicking on the item collecitons.

In the first case it is possible that the Inventory Grid simply isn't drawing the Inventory when it is opened. If that's the case make sure to tick the option to draw on open or enable:
1644329317658.png

If it's the second then double check that your Item Pickup prefab is setup correctly.
 
Perhaps you misunderstood me. I need that after the drop of the item, the cell in the inventory is not empty, but instead of it, the already existing inventory items are filled.
 
Ah, so you wish to have no empty spaces between items?
In that case untick this option on the Inventory Grid:
1644332246025.png
This will make items not bound to any specific index and they will always be placed without any spaces in between items.
 
  • Like
Reactions: EVG
Top