unity指定资源打包(AssetBundleBuild)

直接上代码

assetBundleName 与 assetBundleVariant 要分别设置

如果设置到一起的话会出现报错

报错为:AssetBundle name "prefab.unity3d" with variant "" and AssetBundle name "prefab.unity3d" with variant "unity3d" cannot coexist.

 

posted @ 2020-04-03 23:28  zjp971014  阅读(1395)  评论(0)    收藏  举报