diff --git a/Assets/YooAsset/Runtime/PackageSystem/ResourcePackage.cs b/Assets/YooAsset/Runtime/PackageSystem/ResourcePackage.cs index b31c900..7182387 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/ResourcePackage.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/ResourcePackage.cs @@ -844,6 +844,7 @@ namespace YooAsset public long GetCachedTagsRawFileSize(string[] tags) { + DebugCheckInitialize(); var list = _playModeServices.GetCachedTagsRawFiles(tags); long size = 0; for (var i = 0; i < list.Count; i++) @@ -855,6 +856,7 @@ namespace YooAsset internal List GetCachedTagsRawFiles(string[] tags) { + DebugCheckInitialize(); return _playModeServices.GetCachedTagsRawFiles(tags); } public ClearTagsCachedRawFilesOperation ClearTagsCacheFilesAsync(string[] tags)