Does anyone know why my drag drop isn't being detected?

Thank you for your reply.

I have been looking at your screenshot for good 15 minutes and nothing looks out of ordinary here, in fact it does look good. That made me re-watch the video over and over and something doesn’t look quite right but I’m having hard time pinning it down, partially because you’re dragging an empty slot (I did notice print strings this time). I did noticed it did work the first time (you get a green outline on a slot you’re hovering on), but then when you’re dragging (slot 9) it doesn’t produce that green outline, which makes me believe there is a problem with your visibility settings on the slot itself.

Here is my inventory slot widget for comparison.
[Thumbnail is Image]
[Quantity/SlotID are text]

My suggestion would be adding actual visual representation of items (hardcode few items into slots if you don’t have it setup yet), prevent dragging of empty slots and check if you’re dragging into the same slot index.

I also just noticed that you’re casting to this (I can’t make out the name, sorry). Could the problem be in here? Try using your original cast to WBP_Inventory_Slot.

Where does Cast Failed go? Try disconnecting that too!

Here’s my graph.

Had to upload video to YT due to file size limit.

Video

Edit: Prevent empty slots from being dragged.

Edit#2: If we’re unable to find what’s causing the issue, I might be able to send you a link to a project with working inventory, as shown in the video.

1 Like