Update YooAssets.cs

This commit is contained in:
hevinci
2022-09-06 09:57:48 +08:00
parent 53b53eb0a0
commit e77dfb5ca3

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