Unity 4.x Asset Bundle 重名

在 Unity 4.5.1f3中测试发现如下问题

两个不同文件下相同名字的资源打包成AssetBundle以后加载失败,提示错误  xxxxx can't be loaded because another asset bundle with the same files are already loaded

测试时两个资源分别是: dealers/dealer1.png和dealers/voice/Dealer1.prefab,打包以后生成的assetbundle是dealers/dealer1.assetbundle和dealers/voice/Dealer1.assetbundle

将后一个资源名字修改以后,问题解决,google发现官方论坛如下

http://forum.unity3d.com/threads/asset-bundle-cant-be-the-same-name.190275/

据说Unity5修复了该问题

原文地址:https://www.cnblogs.com/hyamw/p/4864324.html