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 !";