三国卡牌客户端基础资源仓库
hch
2025-06-24 7f957ecb475adb30eb692884d22412b765fa1a7d
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();
    }