You could use Procedural Mesh Component.
Follow these steps:
-
Create an actor with Procedural Mesh Component:
-
GetMousePos:
-
Draw spline between two points:
-
Make shape point (vertex):
-
Make shape (Create Mesh Section):
-
Inputs:
-
Clear service components and vars: