Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Fixed]CurvySpline.Length can return 0 during init stage
#1
Hello.

Sometimes CurvySpline.Length returns 0.
My setup is - scene loaded and gameObjects with CurvySpline acquired from pool in this new scene. Some of these splines return Length = 0.
Later gameObjects get repooled and also sometimes return Length=0.

I thought it could be due to execution order, but Curvy already set highest order for CurvySpline.
Currently got it hack fixed by making `CurvySpline.Initialize` public, adding `if (mIsInitialized) return;` guard into `Initialize`, and calling `Initialize` before `CurvySpline.Length`

Please help fixing it correctly, thanks.
Reply


Messages In This Thread
[Fixed]CurvySpline.Length can return 0 during init stage - by c0ffee - 01-15-2020, 01:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Destroying curvyspline instances jmh1804 5 3,002 09-18-2024, 07:52 AM
Last Post: _Aka_
  CurvySpline Optimize Candy 1 1,445 08-02-2024, 08:35 AM
Last Post: _Aka_
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1,383 05-14-2024, 04:52 PM
Last Post: _Aka_
  Keeping a fixed spline length jh092 3 2,378 02-21-2024, 06:25 AM
Last Post: Primrose44

Forum Jump: