使用AssetBundle.CreateFromFile()创建assetBundle失败:
1、确保打包assetBundle时使用的option包括BuildOptions.UncompressedAssetBundle,因为只能加载非压缩资源
2、AssetBundle.CreateFromFile()的加载路径不同于 WWW.assetBundle, WWW.LoadFromCacheOrDownload,
如:WWW download = WWW.LoadFromCacheOrDownload ("file://"+Application.dataPath+"/StreamingAssets" + "/MyScene.unity3d", 1);
AssetBundle bundle = AssetBundle.CreateFromFile (Application.dataPath + "/StreamingAssets" + "/MyScene.unity3d");
差别在于"file://"
【U3D】AssetBundle.CreateFromFile()加载资源失败
原文地址:http://568464209.blog.51cto.com/7726521/1759595