static void EditorAssetBundleNameMenuItem_EditorWindowSetAssetBundleName() { if (EditorStrayFogApplication.IsExecuteMethodInCmd()) { EditorStrayFogExecute.ExecuteSetAssetBundleName(); EditorStrayFogApplication.MenuItemQuickDisplayDialogSucceed(mcSetAssetBundleName); } else { EditorWindowSetAssetBundleName win = EditorWindow.GetWindow <EditorWindowSetAssetBundleName>(mcSetAssetBundleName); win.Show(); } }
/// <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(); }