下载的 assetbundle 不在 Application.streamingAssetsPath
downloaded assetbundle is not in Application.streamingAssetsPath
我通过使用 UnityWebRequest GetAssetBundle(string uri, uint version, uint crc);
获得了 assetbundle
但是 Application.streamingAssetsPath
是空的....
下载的assetbundle在哪里以及如何加载下载的assetbundle?
我的Unity版本是2017.3
谢谢 vmchar。但是我不知道怎么用
AssetBundle manifestBundle = AssetBundle.LoadFromFile(manifestBundlePath);
AssetBundleManifest 清单 = manifestBundle.LoadAsset("AssetBundleManifest");
什么是 manifestBundlePath 以及如何访问此路径。
如何在使用前访问下载的资产包 UnityWebRequest.GetAssetBundle
如果你提出方法,我真的很感谢你。
Unity 的 Asset Bundles 没有下载到 streamingAssets 文件夹中,它们被下载到 Cache 中,您可以阅读一下 here. This Cache path is unique for each platform, and Unity's API incapsulates paths in Cache class. You should also keep in mind that user can delete all downloaded bundles from Cache by cleaning application resources (it's done in system setting on mobile platforms). Also this link 可能会有帮助。
我通过使用 UnityWebRequest GetAssetBundle(string uri, uint version, uint crc);
但是 Application.streamingAssetsPath
是空的....
下载的assetbundle在哪里以及如何加载下载的assetbundle?
我的Unity版本是2017.3
谢谢 vmchar。但是我不知道怎么用
AssetBundle manifestBundle = AssetBundle.LoadFromFile(manifestBundlePath); AssetBundleManifest 清单 = manifestBundle.LoadAsset("AssetBundleManifest"); 什么是 manifestBundlePath 以及如何访问此路径。
如何在使用前访问下载的资产包 UnityWebRequest.GetAssetBundle
如果你提出方法,我真的很感谢你。
Unity 的 Asset Bundles 没有下载到 streamingAssets 文件夹中,它们被下载到 Cache 中,您可以阅读一下 here. This Cache path is unique for each platform, and Unity's API incapsulates paths in Cache class. You should also keep in mind that user can delete all downloaded bundles from Cache by cleaning application resources (it's done in system setting on mobile platforms). Also this link 可能会有帮助。