三国卡牌客户端基础资源仓库
hch
8 天以前 5ec75688dbe553ed0b27c6d05511703f0f91bc16
0312 增加材质
1个文件已修改
10 ■■■■■ 已修改文件
Assets/Editor/Tool/UpdateAssetBundleName.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -116,6 +116,16 @@
            // EditorUtility.SetDirty(importer);
        }
        guids = AssetDatabase.FindAssets("t:Material", new string[] { assetRelativePath });
        foreach (var guid in guids)
        {
            var path = AssetDatabase.GUIDToAssetPath(guid);
            var importer = AssetImporter.GetAtPath(path);
            importer.assetBundleName = "ui/materials";
            // EditorUtility.SetDirty(importer);
        }
        Debug.Log("Window资源包名更新完成!");
        // AssetDatabase.SaveAssets();
        // AssetDatabase.Refresh();