使用IndexDB可以将AssetBundle缓存在浏览器本地缓存,可加快请求AssetBundle的速度。
UnityWebRequest
UnityWebRequest www = UnityWebRequestAssetBundle.GetAssetBundle(url, Hash128.Compute(url));
缓存位置
C:\Users\PC-ZhangYuting\AppData\LocalLow\Unity\项目名称
网络请求临时保存位置
C:\Users\PC-ZhangYuting\AppData\LocalLow\Unity\Temp