05-07-2020, 11:02 AM
(This post was last modified: 05-08-2020, 09:56 AM by Ærilwentar.)
Hi!
I started learning Curvy recently, and I need help figuring something out.
I have a 2D top-down project where I render paths along splines on a map screen. Currently, I use CurvyLineRenderer to generate simple solid lines as paths on the map.
I want to be able to render paths gradually from 0% to 100% of the spline. I thought of subdividing control points very finely, and turning CurvySplineSegments visible and invisible, but that would be choppy and probably inefficient. Is there a property of the spline or the renderer that I could set, that would make the path render up to X%? If so, then I could use it in a tween. Can you advise me on the best way to go about this?

I have a 2D top-down project where I render paths along splines on a map screen. Currently, I use CurvyLineRenderer to generate simple solid lines as paths on the map.
I want to be able to render paths gradually from 0% to 100% of the spline. I thought of subdividing control points very finely, and turning CurvySplineSegments visible and invisible, but that would be choppy and probably inefficient. Is there a property of the spline or the renderer that I could set, that would make the path render up to X%? If so, then I could use it in a tween. Can you advise me on the best way to go about this?