var temp = UnityWebRequestAssetBundle.GetAssetBundle(path);
yield return temp.SendWebRequest();
if (temp.isDone)
{
File.WriteAllBytes(savePath, temp.downloadHandler.data);
Debug.Log("写入完毕");
}
我使用这个函数从其他地方下载AB,temp.downloadHandler.data始终提示Raw data access is not supported for asset bundles(资产包不支持原始数据访问)。AB资源读取实例化都是没问题的就是访问不是byte[] 无法下载 这个怎么解?