Ejemplo n.º 1
0
 public static void EditorDevelopMenuItem_ClearAllAssetBundleNameWindow()
 {
     if (EditorStrayFogApplication.IsExecuteMethodInCmd() || EditorUtility.DisplayDialog(mcClearAllAssetBundleName, "Are you sure 【" + mcClearAllAssetBundleName + "】?", "Yes", "No"))
     {
         EditorStrayFogExecute.ExecuteClearAllAssetBundleName();
         EditorStrayFogApplication.MenuItemQuickDisplayDialogSucceed(mcClearAllAssetBundleName);
     }
 }
Ejemplo n.º 2
0
    /// <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();
    }