From 6794bb89cb6a5116964724cf20e189f5a7ee8a15 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 26 七月 2023 21:17:14 +0800
Subject: [PATCH] 0312 资源 Mob文件夹改名Gmodels,鸿蒙系统下Mob会被当作缓存清理

---
 Assets/Editor/Tool/UpdateAssetBundleName.cs |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/Assets/Editor/Tool/UpdateAssetBundleName.cs b/Assets/Editor/Tool/UpdateAssetBundleName.cs
index 461b38f..710ef47 100644
--- a/Assets/Editor/Tool/UpdateAssetBundleName.cs
+++ b/Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -185,16 +185,16 @@
 
 public class UpdateMobSetting
 {
-    static string rootPath = Application.dataPath + "/ResourcesOut/Mob";
-    static string assetPath = "Assets/ResourcesOut/Mob";
-    static string createroleRoot = Application.dataPath + "/ResourcesOut/Mob/CreateRole";
-    static string createroleAssetPath = "Assets/ResourcesOut/Mob/CreateRole";
+    static string rootPath = Application.dataPath + "/ResourcesOut/Gmodels";
+    static string assetPath = "Assets/ResourcesOut/Gmodels";
+    static string createroleRoot = Application.dataPath + "/ResourcesOut/Gmodels/CreateRole";
+    static string createroleAssetPath = "Assets/ResourcesOut/Gmodels/CreateRole";
 
     static string zsMaterialPath_Origin = Application.dataPath + "/Art/Role/A_Zs/Materials";
     static string fsMaterialPath_Origin = Application.dataPath + "/Art/Role/A_Fs/Materials";
 
-    static string zsMaterialPath_OutPut = Application.dataPath + "/ResourcesOut/Mob/A_Zs/Materials";
-    static string fsMaterialPath_OutPut = Application.dataPath + "/ResourcesOut/Mob/A_Fs/Materials";
+    static string zsMaterialPath_OutPut = Application.dataPath + "/ResourcesOut/Gmodels/A_Zs/Materials";
+    static string fsMaterialPath_OutPut = Application.dataPath + "/ResourcesOut/Gmodels/A_Fs/Materials";
 
     [MenuItem("绋嬪簭/璁剧疆璧勬簮鍖呭悕/鏇存柊Mob(All) AssetBundleName")]
     public static void SetAllMobAssetBundleName()
@@ -214,7 +214,7 @@
                                                  .Replace(".prefab", "")
                                                  .Replace("Prefab_Hand", "");
 
-            importer.assetBundleName = StringUtility.Contact("mob/prefab_race", hostfix);
+            importer.assetBundleName = StringUtility.Contact("gmodels/prefab_race", hostfix);
             // EditorUtility.SetDirty(importer);
         }
 
@@ -224,7 +224,7 @@
             var importerPath = createroleAssetPath + Path.DirectorySeparatorChar + file.Name;
             var extersion = Path.GetExtension(file.FullName);
             var importer = AssetImporter.GetAtPath(importerPath);
-            importer.assetBundleName = "mob/createrole";
+            importer.assetBundleName = "gmodels/createrole";
             // EditorUtility.SetDirty(importer);
         }
 
@@ -261,12 +261,12 @@
             if (_file.Name.StartsWith("A_Zs_Sz"))
             {
                 string _abName = Path.GetFileNameWithoutExtension(_file.Name).Replace("_Dm", "");
-                _importer.assetBundleName = "mob/prefab_race_" + _abName;
+                _importer.assetBundleName = "gmodels/prefab_race_" + _abName;
             }
             else
             {
                 string _abName = Path.GetFileNameWithoutExtension(_file.Name).Replace("_02", "").Replace("_Dm", "").Replace("_Dm_02", "");
-                _importer.assetBundleName = "mob/prefab_race_" + _abName;
+                _importer.assetBundleName = "gmodels/prefab_race_" + _abName;
             }
             // EditorUtility.SetDirty(_importer);
         }
@@ -280,12 +280,12 @@
             if (_file.Name.StartsWith("A_Fs_Sz"))
             {
                 string _abName = Path.GetFileNameWithoutExtension(_file.Name).Replace("_Dm", "");
-                _importer.assetBundleName = "mob/prefab_race_" + _abName;
+                _importer.assetBundleName = "gmodels/prefab_race_" + _abName;
             }
             else
             {
                 string _abName = Path.GetFileNameWithoutExtension(_file.Name).Replace("_02", "").Replace("_Dm", "").Replace("_Dm_02", "");
-                _importer.assetBundleName = "mob/prefab_race_" + _abName;
+                _importer.assetBundleName = "gmodels/prefab_race_" + _abName;
             }
             // EditorUtility.SetDirty(_importer);
         }
@@ -299,7 +299,7 @@
         //    var importerPath = assetPath + "/A_Zs/Materials/" + file.Name;
         //    var importer = AssetImporter.GetAtPath(importerPath);
 
-        //    importer.assetBundleName = "mob/a_zs_materials";
+        //    importer.assetBundleName = "gmodels/a_zs_materials";
         //    EditorUtility.SetDirty(importer);
         //}
 
@@ -309,10 +309,10 @@
         //    var importerPath = assetPath + "/A_Fs/Materials/" + file.Name;
         //    var importer = AssetImporter.GetAtPath(importerPath);
 
-        //    importer.assetBundleName = "mob/a_fs_materials";
+        //    importer.assetBundleName = "gmodels/a_fs_materials";
         //    EditorUtility.SetDirty(importer);
         //}
-        DebugEx.Log("Mob璧勬簮鍖呭悕鏇存柊瀹屾垚!");
+        DebugEx.Log("Gmodels璧勬簮鍖呭悕鏇存柊瀹屾垚!");
         //AssetDatabase.SaveAssets();
         //AssetDatabase.Refresh();
     }

--
Gitblit v1.8.0