How to draw a line in the HUD?

Hi all,

I am wondering how it is possible to draw a line on user input.

Well, my main problem is even to display a line. Here is my BP:

I want to display a line (the way user draws it).

I have some how to push the line to the viewbox… but it accepting only widgets.

any idea?

Try to hook it up to Tick as I think what it is doing it only draw it for one frame so you might not notice it…

You can use the node “Project World location to Screen” and get the Vector2d value from the a 3D point and use it to draw the line.

Look this: Project World to Screen | Unreal Engine Documentation