Assets/SplineTool/Scripts/CorgiSpline/Spline.cs
/// <summary>
/// Increases the internal Point array length. Does not automatically add valid points.
/// </summary>
/// <param name="newLength"></param>
Increases the internal Point array length. Does not automatically add valid points.
Increases the internal Point array length . Does not automatically add valid points .
public void ResizePointArray(int newLength)
        {
            if (newLength < 0) newLength = 0;
            var newArray = new SplinePoint[newLength];
            var copyLength = Mathf.Min(Points.Length, newLength);
            for (var i = 0; i < copyLength; ++i)
            {
                newArray[i] = Points[i];
            }
            Points = newArray;
        }
public void ResizePointArray ( int newLength ) { if ( newLength < 0 ) newLength = 0 ; var newArray = new SplinePoint [ newLength ] ; var copyLength = Mathf . Min ( Points . Length , newLength ) ; for ( var i = 0 ; i < copyLength ; ++ i ) { newArray [ i ] = Points [ i ] ; } Points = newArray ; }
Increases the internal Point array length.
Increases the internal Point array length .
newLength
int
None