I’m trying to use the OnPaint override and Draw Line in a blueprint to draw a compass plot, with many lines coming from a single origin. The number of lines needed is not fixed. How can I do this?
I can’t loop through the Draw Line function because OnPaint reinitiates every tick and only the first line is drawn.
DrawLines draws a polyline of sequentially connected segments, rather than all segments radiating from a common origin
Wow, thanks for letting me know that. I tried like your link and the lines can be previed in UMG editor. Sorry I have not tested the feature carefully.
Functions for spline rendering and editing is using slate original apis. Only functions for calculating spline rail location is similar as BPs, as they are all bezier splines, so they can be calculated the same way. And I have made some changes and limitions for 2D space, the functions work fine in my test.