Hello, I have a curious issue I can’t figure out how to solve. I’ve created an inventory system that uses the Drag and Drop functionality. I’m trying to create the function where if the player drags the item out of the grid and to the “world” that it removes the item. I have a MasterUI widget which encompasses the whole screen and the inventory grid is attached to a named Slot inside a canvas panel. I got the functionality to work when I set the Master UI to Visible because I could detect On Drop, but then I realized I was no longer able to click on my Characters. There On Click events were no longer firing because the UI was consuming the click even though the Inventory is hidden.
Is there a way to have the UI ignore the click if there’s nothing actually there? Like if there’s no widget there to use the click then it passes through or propogates to the Character’s in the world?
Pending that, I can use Drag Leave to detect when the inventory item leaves the grid but the way my functionlaity is built i don’t want to drop the item unless the player releases the mouse because they might drag it back in, for example. I don’t know how to tie the Drag Leave event to also detect if mouse is pressed or if that’s even possible.
Any suggestions would be welcome!