public static void EditorDevelopMenuItem_ClearAllAssetBundleNameWindow() { if (EditorStrayFogApplication.IsExecuteMethodInCmd() || EditorUtility.DisplayDialog(mcClearAllAssetBundleName, "Are you sure 【" + mcClearAllAssetBundleName + "】?", "Yes", "No")) { EditorStrayFogExecute.ExecuteClearAllAssetBundleName(); EditorStrayFogApplication.MenuItemQuickDisplayDialogSucceed(mcClearAllAssetBundleName); } }
/// <summary> /// DrawAssetNodes /// </summary> private void DrawAssetNodes() { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Set Name")) { EditorStrayFogExecute.ExecuteSetAssetBundleName(); EditorUtility.DisplayDialog("Set AssetBundleName", "set AssetBundle success", "OK"); } if (GUILayout.Button("Clear Name")) { EditorStrayFogExecute.ExecuteClearAllAssetBundleName(); EditorUtility.DisplayDialog("Clear AssetBundleName", "clear AssetBundle success", "OK"); } EditorGUILayout.EndHorizontal(); }