08-21-2013, 03:05 PM
Try adding this to the CurvyUtility class (CurvyUtility.cs):
You'll need to call this from a script or add a button to the spline inspector if you want it within the editor.
Code:
/// <summary>
/// Flips the direction of a spline, i.e. the first Control Point will become the last and vice versa.
/// </summary>
public static void FlipSpline(CurvySpline spline)
{
spline.ControlPoints.Reverse();
spline._nameControlPoints();
spline.Refresh(true, true, false);
}
You'll need to call this from a script or add a button to the spline inspector if you want it within the editor.