private static void RemoveEdEx(bool clearPrefs = true, bool prompt = true) { if (prompt && !EditorUtility.DisplayDialog("Confirm Editor Extensions Removal", "This action will remove PlayFab Editor Extensions from the current project.", "Confirm", "Cancel")) { return; } try { window.Close(); var edExRoot = new DirectoryInfo(PlayFabEditorHelper.EDEX_ROOT); FileUtil.DeleteFileOrDirectory(edExRoot.Parent.FullName); if (clearPrefs) { PlayFabEditorDataService.RemoveEditorPrefs(); } AssetDatabase.Refresh(); } catch (Exception ex) { RaiseStateUpdate(EdExStates.OnError, ex.Message); } }
private static void RemoveEdEx(bool prompt = true) { if (prompt && !EditorUtility.DisplayDialog("Confirm Editor Extensions Removal", "This action will remove PlayFab Editor Extensions from the current project.", "Confirm", "Cancel")) { return; } UnityEditor.PackageManager.Client.Remove(Strings.Package.BuildName(ApiCategory.editorextensions)); window.Close(); //TODO wait for finish and log }