unity 加载Assetbundle文件夹路径需要注意
2018-03-03 16:27
288 查看
测试时 在Editor下加载Assetbundle文件夹下路径成功 在Android下使用www一直失败 使用Assetbundle.loadfromfile可以
发现:使用AssetBundle.LoadFromFile的路径是path,那么使用www加载需要前缀 "File://"+path才可以 ( Application.persistentDataPath;)
加载StreamAssets路径下同理, www需要加前缀 "jar:File://"; ( Application.dataPath + "/!/assets")
AssetBundle.LoadFromFile不需要前缀
发现:使用AssetBundle.LoadFromFile的路径是path,那么使用www加载需要前缀 "File://"+path才可以 ( Application.persistentDataPath;)
加载StreamAssets路径下同理, www需要加前缀 "jar:File://"; ( Application.dataPath + "/!/assets")
AssetBundle.LoadFromFile不需要前缀
相关文章推荐
- 解决Unity 中WWW加载 AssetBundle---中文路径
- 加载Assetbundle需要注意的地方
- 解决Unity 中WWW加载 AssetBundle---中文路径
- Unity 中WWW加载 AssetBundle---中文路径
- Unity最新版打包AssetBundle和加载的方法
- Unity AssetBundle加载错误(已解决)
- Unity5.4 Assetbundles官方说明七(在AssetBundle中存储和加载二进制数据)
- unity动态加载之AssetBundle应用
- Unity游戏开发使用Assetbundle加载场景的实战
- unity使用AssetBundle使用记录四--加载与卸载(2)
- unity AssetBundle 加载资源 笔记
- unity 关于assetbundle 打包和加载的方法
- Unity5-ABSystem(三):AssetBundle加载
- 动态代码设置assetbundleName,将一个纹理(Texture)文件夹打包,加载assetbundle
- Unity 关于AssetBundle(资源束)打包和加载(一)
- unity 安卓 如何读取 Application.persistentDataPath这个路径下面的assetbundle文件
- unity 加载assetbundle
- unity使用AssetBundle使用记录一(续)--场景打包成AssetBundle并加载
- Unity AssetBundle依赖加载
- unity中ScriptableObject在assetbundle中的加载