mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 11:38:47 +00:00
feat(DownloadSystem):支持自定义下载请求
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user