public static void SaveSpline() { string path = EditorUtility.SaveFilePanel("Save Spline", "Assets/SplineTool/SavedSplines/", component.name, "spline"); if (path != null) { component.SaveInfo(path); } }