How to create a line between a world space objective marker and a screen-based UI element


How can I draw a line between a world space objective marker and a screen-based UI element, similar to what’s shown in the screenshot.

Override the OnPaint function in your widget, it will provide you with Context;
There, you can Draw Line using that Context as one of the inputs.

To get the end point, you can use the Project World to Screen node.

2 Likes