Beispiel #1
0
 public static void RefreshPartList()
 {
     if (PartList.Static != null)
     {
         InspectorPartList.RefreshPartPackage();
         InspectorPartList.Refresh(PartList.Static);
         EditorUtility.DisplayDialog("Refresh Part", "Parts and Add-Ons refreshed succesfully!", "Ok");
     }
 }
Beispiel #2
0
 static void Play()
 {
     if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
     {
         if (PartList.Static != null)
         {
             InspectorPartList.RefreshPartPackage();
             InspectorPartList.Refresh(PartList.Static);
         }
         EditorPrefs.SetString("PlayFromStartPrevScene", EditorSceneManager.GetActiveScene().path);
         EditorSceneManager.OpenScene(startScene);
         EditorPrefs.SetBool("PlayFromStartActive", true);
         EditorApplication.isPlaying = true;
     }
 }