少年修仙传客户端基础资源
client_Wu Xijin
2018-10-21 6f8ed2e37f8762fb3501a671d0dca40bcd68edae
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -128,7 +128,15 @@
            var importerPath = assetPath + Path.DirectorySeparatorChar + file.Name;
            var extersion = Path.GetExtension(file.FullName);
            var importer = AssetImporter.GetAtPath(importerPath);
            var hostfix = file.Name.Replace("Prefab_Secondary", "").Replace("Prefab_Weapon", "").Replace("Prefab_Wing", "").Replace("Prefab_Race", "").Replace("Prefab_Horse", "").Replace(".prefab", "");
            var hostfix = file.Name.Replace("Prefab_Secondary", "")
                                                 .Replace("Prefab_Weapon", "")
                                                 .Replace("Prefab_Wing", "")
                                                 .Replace("Prefab_Race", "")
                                                 .Replace("Prefab_Horse", "")
                                                 .Replace("_UI", "")
                                                 .Replace(".prefab", "")
                                                 .Replace("Prefab_Hand", "");
            importer.assetBundleName = StringUtility.Contact("mob/prefab_race", hostfix);
            EditorUtility.SetDirty(importer);
        }