From e77dfb5ca381de7d5284f4393674614bac2a514a Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 6 Sep 2022 09:57:48 +0800 Subject: [PATCH] Update YooAssets.cs --- Assets/YooAsset/Runtime/YooAssets.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 25da7db..f28a4d4 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -522,8 +522,9 @@ namespace YooAsset return operation; } -#if UNITY_EDITOR BundleInfo bundleInfo = _bundleServices.GetBundleInfo(assetInfo); + +#if UNITY_EDITOR if (bundleInfo.Bundle.IsRawFile == false) { string error = $"Cannot load asset bundle file using {nameof(GetRawFileAsync)} method !";