Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NextSpline
#2
Hi,

In an effort to simplify the API, that method got deprecated in version 6.4.0 and removed in version 7.0.0
Here is it's content. It's all public code, so you can just copy the code and use it wherever you want:

public CurvySpline NextSpline
{
get
{
CurvySplineSegment cp = LastVisibleControlPoint;
return (cp && cp.FollowUp) ? cp.FollowUp.Spline : null;
}
}

Even simpler, if you are sure that LastVisibleControlPoint is not null and LastVisibleControlPoint.FollowUp is not null neither, you can simply replace the implementation with this line: LastVisibleControlPoint.FollowUp.Spline

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
NextSpline - by DekoGames - 07-04-2020, 11:50 PM
RE: NextSpline - by _Aka_ - 07-05-2020, 09:57 AM
RE: NextSpline - by DekoGames - 07-05-2020, 11:05 AM

Forum Jump: