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
  Freewalk mode, then return to spline mythstified 6 152 08-30-2018, 10:29 AM
Last Post: Jacki
  CurvySpline.Interpolate() returns (0,0,0) on first frame freqout 6 2,160 04-20-2018, 03:27 PM
Last Post: _Aka_
  UWP Hololens build Autarkis 1 523 07-29-2017, 05:48 AM
Last Post: Jake
  32Bit build train gets stuck/output spam xTheEc0 0 433 02-01-2017, 02:15 PM
Last Post: xTheEc0

Forum Jump: