Download

Drop UMG object onto interactable actor?

How do I communicate to an actor that I’m dropping something on it and to react based on what item was dragged onto it? I can’t find an example of this. And please don’t link to the UMG drag drop Twitch stream tutorials. They’re not much help at all.

You’d make a widget that absorbs the OnDragOver event, and convert the widgets current drag location reported in the event args, into game camera screen space (which is different from widget screen space because of the DPI scaling). Once you have a position in screenspace, you’ll do a raycast/pick/trace to see what actor you’re currently over. From there, you notify the actor he’s got something on him.