Assets/Editor/SpritePacking/SpriteSettings.asset | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/Editor/Tool/UpdateAssetBundleName.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Assets/Launch/Common/ResourcesPath.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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 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(); } 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/";