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

@@ -168,6 +168,15 @@ namespace YooAsset
DownloadSystem.BreakpointResumeFileSize = fileBytes;
}
/// <summary>
/// 自定义下载请求
/// </summary>
/// <param name="requestDelegate"></param>
public static void SetDownloadSystemUnityWebRequest(DownloadRequestDelegate requestDelegate)
{
DownloadSystem.SetRequestDelegate(requestDelegate);
}
/// <summary>
/// 设置下载系统参数下载失败后清理文件的HTTP错误码
/// </summary>