Drag and Drop OnDrop
I'm implementing Drag and Drop functionality for one of my items (which is represented as a widget blueprint containing an image). When the player drags the item onto another item it should combine the items. When the player drags the item into another area on the HUD it should destroy the item.
For my HUD widget blueprint I set my canvas panel to Visible and override OnDrop. Then in my Item widget blueprint I also override OnDrop.
The only problem is when the player drags the item onto another item BOTH OnDrop calls are triggered. I only want the HUD OnDrop (destroy item) to be triggered when the item isn't dropped on another item. Both should never be called for the same drop... only one or the another depending on whether we landed on another item or some other area of the HUD.
What can I do about this?
asked Apr 23 '18 at 04:19 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here