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
  Duplicate CurvySpline pysnoo 1 44 07-01-2019, 04:55 PM
Last Post: _Aka_
  Spline events not working in IL2CPP build (Android) callen_mrez 6 368 06-04-2019, 09:24 PM
Last Post: _Aka_
  Disable the Update of the CurvySpline UsernameHed 8 419 05-29-2019, 01:13 PM
Last Post: _Aka_
  Freewalk mode, then return to spline mythstified 6 2,923 11-09-2018, 08:20 AM
Last Post: sanaeerumey

Forum Jump: