AssetBundle.Unload error

In bugly have same error logs:

AssetBundle.Unload could not complete because the asset bundle still has an async load operation in progress.```

```csharp
if (assetBundleCreateRequest != null && !assetBundleCreateRequest.isDone)
{
      assetBundleCreateRequest.assetBundle?.Unload(true);
}

Anyone can give some helpful information, Thanks.

It seems there is still an Asset load operation that is not complete, e.g. there has been a call to AssetBundle.LoadAssetAsync that has not finished yet.

Thanks @AndrewSkow , can i just call

# Note that accessing asset before isDone is true will stall the loading process.
assetBundleRequest.asset

to force “async” to “sync” before unload asset bundle. And has any methods to cancel async load asset from bundle?

1 Like

Unfortunately there are no methods to cancel an Async Load Asset.