直接上代码
assetBundleName 与 assetBundleVariant 要分别设置
如果设置到一起的话会出现报错
报错为:AssetBundle name "prefab.unity3d" with variant "" and AssetBundle name "prefab.unity3d" with variant "unity3d" cannot coexist.
unity指定资源打包(AssetBundleBuild)
原文:https://www.cnblogs.com/zjp959/p/12629667.html