From 423655e1cac9b57df25e12d28fc27a7e58cfcfb6 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 31 Jan 2023 18:14:03 +0800 Subject: [PATCH] update asset system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了通过Handle句柄查询资源包下载进度为零的问题。 --- Assets/YooAsset/Runtime/AssetSystem/Provider/BundledProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledProvider.cs b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledProvider.cs index 340173a..d1b61e1 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledProvider.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Provider/BundledProvider.cs @@ -48,7 +48,7 @@ namespace YooAsset result.TotalSize += (ulong)dependBundle.MainBundleInfo.Bundle.FileSize; result.DownloadedBytes += dependBundle.DownloadedBytes; } - result.Progress = result.DownloadedBytes / result.TotalSize; + result.Progress = (float)result.DownloadedBytes / result.TotalSize; return result; }