Drag And Drop

What you want is here:

You just need to translate widget coord to world coords correctly. And use the resulting data to trace. Either from the camera, or from the top → down. If your widget is nested, there may be additional steps needed. But that’s me guessing.

No. How can I tell how you scripted it…

I don’t think you’ve ever showned how you’re adding the widgets to the map. And when I asked why we’re adding the widgets to the viewport rather than to the map, you did not answer - or I missed it (or mixing things up)

Perhaps you could clarify that.


This makes little sense. You’re not adding the waypoints to the map, you’re just placing them in the viewport. This may work in certain scenarios but may go complete and utter bonkers. Let’s say the user changes resolution or you do not anchor the map widget properly. It will be a mess. The waypoints should become part of the map.

You will want the map to have a canvas, dropping the widget adds it to that canvas.