I’m making an inventory. Everything is working fine. I’m just looking for a way to drop an item outside of the inventory and spawn it back into the world.
Now I already have this working perfectly.
The only problem is when i drop my item on another slot, it also spawns it in the world everytime.
The way I currently detect if an item is being dragged outside of the inventory is by using the “On drag cancelled” event from drag and drop operation.
Now this always seems to fire when I release my dragged item (widget), regardless of it being dropped onto another slot. Now how would make it so cancelled it only called when there is no drop event?
this is my drop
cancelled event (event graph)
This is all inside a single inventoryslot widget