public static void ExportJson() { string path = EditorUtility.SaveFilePanel("Export XML", "Assets/SplineTool/SavedSplines/", component.name, "json"); if (path != null) { component.ExportJson(path); } }