Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline.length incorrect
#2
When a spline is modified, a call to Refresh is needed to update some of its data. This call is done automatically every frame, and in some API methods. Under some circumstances, one might call the Length property while the spline is not refreshed.
Try calling spline.Refresh before doing the log. If the problem persists, please send me a reproduction case (the code doing the cp adding and logging)
I hope this helped
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
Spline.length incorrect - by dazz777 - 10-06-2021, 10:33 AM
RE: Spline.length incorrect - by _Aka_ - 10-06-2021, 05:38 PM
RE: Spline.length incorrect - by dazz777 - 10-07-2021, 10:18 AM
RE: Spline.length incorrect - by _Aka_ - 10-07-2021, 10:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 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: