Load Addressable assets from asset packs
Asynchronous loading is the recommended way to load Addressable assets from asset packs.
You can load the assets synchronously by calling the WaitForCompletion()
method on the AsyncOperationHandle
. However, the Addressables for Android package doesn't support synchronous loading if WaitForCompletion()
method needs to wait for the asset pack to download. In this case, the package generates an exception indicating that synchronous loading isn't supported for Play Asset Delivery.
If the asset pack is already downloaded and configured for use with the package, WaitForCompletion()
method exits immediately and no exceptions are generated. Although synchronous loading works in this case, it is highly recommended to always load assets from asset packs asynchronously.