unity 加载Assetbundle文件夹路径需要注意

时间:2018-03-03 18:10:48   收藏:0   阅读:1764

  测试时 在Editor下加载Assetbundle文件夹下路径成功 在Android下使用www一直失败 使用Assetbundle.loadfromfile可以

  发现:使用AssetBundle.LoadFromFile的路径是path,那么使用www加载需要前缀 "File://"+path才可以 ( Application.persistentDataPath;)

     加载StreamAssets路径下同理,  www需要加前缀 "jar:File://";   ( Application.dataPath + "/!/assets")

 

    AssetBundle.LoadFromFile不需要前缀

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!