(12-14-2015, 06:28 PM)Jake Wrote: The SplineController should be initialized and ready to go once a Spline is assigned and MoveMode is relative or Spline's Length>0. Can you check that?
MoveMode is AbsolutePrecise and it is reporting Length = 0. So, why is the Length zero when it's a valid CurvySpline? I am instantiating the CurvySpline from a prefab as follows:
Code:
_splinePath = Instantiate(spawnData.splinePath) as CurvySpline;
_splinePath.RefreshImmediately();
And as soon as I check the Length after instantiating, it reports as zero. This worked in the Curvy version I was using for Unity 4.3.
EDIT: I see that RefreshImmediately is obsolete so I replaced with Refresh. It still has the same result.