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"); } }
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; } }