05-08-2023, 10:42 AM
(04-28-2023, 06:45 AM)danne_lindwall Wrote: How would I get per segment data so I can modify the refresh. Specifically the endDistance/startDistance stuff
Every CurvySplineSegment has a Distance property. Assuming your path is the full spline, then
yourSegmentStartDistance = yourSegment.Distance / yourSpline.Length
Depending on when you execute the code (in Awake for example), make sure that yourSpline.IsInitialized is true and that yourSpline.Dirty is false.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.