how do I find out which ui element is under the cursor?

Okey i understand ,you will need to override the function On Drag Detected

or On Mouse Button Down

In this video, the process of creating a drag and swap item system is explained. I recommend watching the entire series, as it does a great job of breaking down how to build a complete inventory system, or you can use it as a reference for what you’ve already created.

This documentation can also help you better understand how the drag-and-drop system works in Unreal.

I think with this, you should be able to achieve what you were looking for.

1 Like