Hi, I am relatively new to unreal engine and am currently making an inventory system. I’m working on a drag & drop system but it doesn’t always work and nothing I’ve found online fixed it. I’m using OnPreviewMouseDown to detect if the left mouse button is being dragged, but it only works sometimes, but only when my mouse is already moving (I think, not quite sure if that’s the actual reason).
[OnPreviewMouseDown] This is the code that detects if it is currently being dragged & if the slot has something in it.
[OnDragDetected] This is the code to actually create a Drag & Drop preview, it shows up how I want it to but just rarely when I click.
It properly prints “Should Detect Drag” when it should, but not always “Drag Actually Detected”.