feat(DownloadSystem):支持自定义下载请求

This commit is contained in:
huanggongming
2023-02-24 12:18:18 +08:00
parent 0232e5adec
commit eb16ba8365
7 changed files with 54 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ namespace YooAsset
if (_webRequest == null)
{
URL = url;
_webRequest = new UnityWebRequest(URL, UnityWebRequest.kHttpVerbGET);
_webRequest = DownloadRequestUtil.NewRequest(URL);
DownloadHandlerBuffer handler = new DownloadHandlerBuffer();
_webRequest.downloadHandler = handler;
_webRequest.disposeDownloadHandlerOnDispose = true;