Hello,
I’m trying to build a tool that displays a large number of items in a List Entry View inside an Editor Utility Widget. I want to be able to drag an item from the list and drop it into the Level Editor Viewport so that the corresponding actor is spawned at the mouse location.
The drag operation is already working, and the spawn logic is implemented as well. But I don’t know how to do the drop operation in the Level Editor Viewport.
For instance, I’ve tried with “on drag cancelled”. But the issue is, obviously, this event can be triggered from anywhere in any viewport or even widget. And the actor would then always be spawned at the same location in the word.
I would love to get some help on the matter.
Thanks!