public void Generate() { UpdateControlPoints(); CatmullRomSpline.GenerateSplinePointsNonAlloc(ref generatedSplinePoints, controlPoints, closedLoop, resolution); }