Update YooAssets.cs

pull/40/head
hevinci 2022-09-06 09:57:48 +08:00
parent 53b53eb0a0
commit e77dfb5ca3
1 changed files with 2 additions and 1 deletions

View File

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