From 7f957ecb475adb30eb692884d22412b765fa1a7d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 24 六月 2025 16:25:07 +0800
Subject: [PATCH] 0312 共用预制体改目录UIComp,图集管理

---
 Assets/Editor/SpritePacking/SpriteSettings.asset |   22 ++++++++++++++++++++++
 Assets/Editor/Tool/UpdateAssetBundleName.cs      |   12 ++++++------
 Assets/Launch/Common/ResourcesPath.cs            |    4 ++--
 3 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/Assets/Editor/SpritePacking/SpriteSettings.asset b/Assets/Editor/SpritePacking/SpriteSettings.asset
index 647a921..f24b2ba 100644
--- a/Assets/Editor/SpritePacking/SpriteSettings.asset
+++ b/Assets/Editor/SpritePacking/SpriteSettings.asset
@@ -871,3 +871,25 @@
       maxTextureSize: 2048
       textureCompression: 1
       textureFormat: 50
+  - folderName: Fight
+    blockOffset: 1
+    enableRotation: 0
+    enableTightPacking: 0
+    padding: 4
+    readable: 0
+    generateMipMaps: 0
+    sRGB: 1
+    filterMode: 1
+    platformSettings:
+    - name: Standalone
+      maxTextureSize: 2048
+      textureCompression: 1
+      textureFormat: 4
+    - name: Android
+      maxTextureSize: 2048
+      textureCompression: 1
+      textureFormat: 50
+    - name: iPhone
+      maxTextureSize: 2048
+      textureCompression: 1
+      textureFormat: 50
diff --git a/Assets/Editor/Tool/UpdateAssetBundleName.cs b/Assets/Editor/Tool/UpdateAssetBundleName.cs
index 2440ba9..39f427c 100644
--- a/Assets/Editor/Tool/UpdateAssetBundleName.cs
+++ b/Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -104,8 +104,8 @@
 
 public class UpdateUIPrefabSetting
 {
-    static string prefabRootPath = Application.dataPath + "/ResourcesOut/Prefab";
-    static string prefabAssetRelativePath = "Assets/ResourcesOut/Prefab";
+    static string prefabRootPath = Application.dataPath + "/ResourcesOut/UIComp";
+    static string prefabAssetRelativePath = "Assets/ResourcesOut/UIComp";
 
 
     [MenuItem("绋嬪簭/璁剧疆璧勬簮鍖呭悕/鏇存柊Prefab(All) AssetBundleName")]
@@ -116,12 +116,12 @@
         {
             var importerPath = prefabAssetRelativePath + Path.DirectorySeparatorChar + file.Name;
             var importer = AssetImporter.GetAtPath(importerPath);
-            importer.assetBundleName = "prefab";
+            importer.assetBundleName = "uicomp";
             // EditorUtility.SetDirty(importer);
         }
 
         
-        Debug.Log("Prefab璧勬簮鍖呭悕鏇存柊瀹屾垚!");
+        Debug.Log("UIComp璧勬簮鍖呭悕鏇存柊瀹屾垚!");
         // AssetDatabase.SaveAssets();
         // AssetDatabase.Refresh();
     }
@@ -482,8 +482,8 @@
             if (extension == ".meta")
             {
                 continue;
-            }
-
+            }
+
             if (extension == ".DS_Store")
             {
                 continue;
diff --git a/Assets/Launch/Common/ResourcesPath.cs b/Assets/Launch/Common/ResourcesPath.cs
index bc3395a..f4794ca 100644
--- a/Assets/Launch/Common/ResourcesPath.cs
+++ b/Assets/Launch/Common/ResourcesPath.cs
@@ -14,7 +14,7 @@
 #endif
 
     public const string windowFileBundleName = "ui";
-    public const string uiprefabFileBundleName = "prefab";
+    public const string uiprefabFileBundleName = "uicomp";
 
     public readonly static string ResourcesOutPath = Application.dataPath + "/ResourcesOut/";
     public const string ResourcesOutAssetPath = "Assets/ResourcesOut/";
@@ -33,7 +33,7 @@
     public static readonly string UI_SPRITE_SUFFIX = "Sprite";
     public static readonly string UI_WINDOW_SUFFIX = "UI";
     public static readonly string UI_FONT_SUFFIX = "Font";
-    public static readonly string UI_PREFAB_SUFFIX = "Prefab";
+    public static readonly string UI_PREFAB_SUFFIX = "UIComp";
 
     public static readonly string CONFIG_FODLER = ResourcesOutPath + "Config/";
 

--
Gitblit v1.8.0