Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CurvySpline.Count return 0 after build
#1
Hi!
I make a costume SplineController for my game and when I run the game inside Unity than work perfectly. But, after a build, CurvySpline.DistanceToSegment(float) return null because the spline has 0 segment. Any ideas?!

Thx
Sébastien Marcil

Code:
void setSegment()
       {
           CurvySplineSegment segment = _waySpline.DistanceToSegment(_splineDistance);
           if (segment != _segment || _targetSpeedModified)
           {
               _segment = _waySpline.DistanceToSegment(_splineDistance);
               _targetSpeed = _segment.GetComponent<SegmentController>().getSpeedBySegment(
                   _cornerEntry,
                   _cornerExit,
                   _topSpeed);
               _targetSpeedModified = false;
           }
       }
Reply
#2
I found! Juste add SetDirtyAll() whend I refresh de spline.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I have a question about curvySpline haifeng.huang 12 32 07-14-2023, 09:34 AM
Last Post: _Aka_
  Invisible generated meshes in build itsGama 5 10 06-08-2023, 11:53 AM
Last Post: _Aka_
  "Deadloop in CurvySPline.Refresh" spam Valkymaera 3 11 05-30-2023, 10:56 AM
Last Post: _Aka_
  Missing Loader errors after build FanManPro 8 9 01-20-2023, 11:45 AM
Last Post: _Aka_

Forum Jump: