update asset sytem
资源句柄类增加GetDownloadReport()方法。
This commit is contained in:
@@ -35,6 +35,22 @@ namespace YooAsset
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取下载报告
|
||||
/// </summary>
|
||||
public override DownloadReport GetDownloadReport()
|
||||
{
|
||||
DownloadReport result = OwnerBundle.GetDownloadReport();
|
||||
foreach (var bundleLoader in DependBundleGroup.DependBundles)
|
||||
{
|
||||
var report = bundleLoader.GetDownloadReport();
|
||||
result.TotalSize += report.TotalSize;
|
||||
result.DownloadedBytes += report.DownloadedBytes;
|
||||
}
|
||||
result.Progress = result.DownloadedBytes / result.TotalSize;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取资源包的调试信息列表
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user