protected static void DrawSection(BGCurvePointI from, BGCurvePointI to, int parts) { BGEditorUtility.Split(@from, to, parts, (fromPos, toPos) => Handles.DrawDottedLine(fromPos, toPos, 2)); }