Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Curve Spline be used for an in game level editor.
#25
(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.
Reply


Messages In This Thread
RE: Can Curve Spline be used for an in game level editor. - by _Aka_ - 05-08-2023, 10:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: