Пример #1
0
 public static void OpenSpline()
 {
     if (EditorUtility.DisplayDialog("Open spline",
                                     "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/", "spline");
         if (path != null)
         {
             component.LoadInfo(path);
         }
     }
 }