三国卡牌客户端基础资源仓库
hch
2 天以前 62b1293121c2efe499b4f07091fcee659e3e5e94
0312 增加音效打包空文件输出
1个文件已修改
10 ■■■■■ 已修改文件
Assets/Editor/Tool/UpdateAssetBundleName.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -435,6 +435,11 @@
            var pathStringArray = file.DirectoryName.Split(Path.DirectorySeparatorChar);
            var importerPath = assetPath + pathStringArray[pathStringArray.Length - 1] + Path.DirectorySeparatorChar + file.Name;
            var importer = AssetImporter.GetAtPath(importerPath);
            if (importer == null)
            {
                Debug.LogError("SetAllAudioAssetBundleName is null" + importerPath);
                continue;
            }
            importer.assetBundleName = "audio/" + pathStringArray[pathStringArray.Length - 1].ToLower();
            // EditorUtility.SetDirty(importer);
        }
@@ -444,6 +449,11 @@
            var pathStringArray = file.DirectoryName.Split(Path.DirectorySeparatorChar);
            var importerPath = assetPath + pathStringArray[pathStringArray.Length - 1] + Path.DirectorySeparatorChar + file.Name;
            var importer = AssetImporter.GetAtPath(importerPath);
            if (importer == null)
            {
                Debug.LogError("SetAllAudioAssetBundleName is null" + importerPath);
                continue;
            }
            importer.assetBundleName = "audio/" + pathStringArray[pathStringArray.Length - 1].ToLower();
            // EditorUtility.SetDirty(importer);
        }