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
  Destroying curvyspline instances jmh1804 5 3,971 09-18-2024, 07:52 AM
Last Post: _Aka_
  CurvySpline Optimize Candy 1 1,944 08-02-2024, 08:35 AM
Last Post: _Aka_
  I have a question about curvySpline haifeng.huang 12 9,357 07-14-2023, 09:34 AM
Last Post: _Aka_
  Invisible generated meshes in build itsGama 5 4,256 06-08-2023, 11:53 AM
Last Post: _Aka_

Forum Jump: