Addressables Checking

  1. How to load an asset if one of the dependencies is missing for it?
    Let’s say that I have an asset loaded, but one of the dependencies for it does not exist (it was not downloaded, a damaged bundle, etc.), as a result, the asset loading stops.

  2. How do I check for a bundle?
    For example, I want to check for a bundle for the ABC asset

Addressables automatically downloads all dependencies when you load an asset. You can also call DownloadDependenciesAsync to download all the dependencies without loading into memory. If it is unable to download all dependencies, you will see errors (the handle’s exception will be set).

AND? Why are you describing dependency loading to me?
I asked a question! How to load an asset if one or more dependencies for it are missing, in which case the asset is not loaded at all and an error occurs.

I just explained to you that you cannot load an asset with missing dependencies. If you expect those dependencies to exist, but cannot load them, you can try clearing the cache and re-loading (the latest version of addressables 1.12 should have that fixed).

As for your other question, you can’t check for a specific bundle like you could with the old assetbundle system. Instead what you can do is request the download size of a particular asset and see if it’s > 0. However, that is currently broken in the latest version. It works in 1.10 but not 1.11 and 1.12.

1 Like

Then I’d better make my own bundle loading system …