Exemple #1
0
 public static void ImportXML()
 {
     if (EditorUtility.DisplayDialog("Import Buddysytem XML",
                                     "This will load another spline to this object and replace all of the current data. This action can not be undone. Are you sure you want to continue?",
                                     "Continue",
                                     "Cancel"))
     {
         string path = EditorUtility.OpenFilePanel("Save Spline", "Assets/", "xml");
         if (path != null)
         {
             component.ImportXML(path);
         }
     }
 }