获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
UnityWebRequest req = new UnityWebRequest(path); DownloadHandlerAssetBundle handler = new DownloadHandlerAssetBundle(req.url, 0); req.downloadHandler = handler; yield return req.SendWebRequest(); AssetBundleab = handler.assetBundle; 使用上面的代码下载AssetBundle会报出同样的错误,Unable to open archive file: path。这个path点击后是可以正确下载资源。(将path粘贴到浏览器地址栏) 在Editor下可以完美运行,但是打包到小游戏就会报错了,有什么解法么?
unity在获取assetbundle的过程中报错?使用的是AssetBundle.LoadFromFIle这个接口,在unity编辑器上使用的情况下是没有问题,但微信小游戏上会出现Unable to open archive file[图片] 还有一个问题是下载的assetbundle包无法写入到Application.persistentDataPath里面。 求请教下这是怎么回事
2024-01-30