Convert AssetBundles to Addressables
When you first open the Addressables Groups window, Unity displays a prompt to convert all AssetBundles into Addressables groups. This is the easiest way to migrate your AssetBundle setup to the Addressables system. You must still update your runtime code to load and release assets using the Addressables
API.
If you want to convert your AssetBundle setup manually, select Ignore and manually migrate the AssetBundles to Addressables:
- Make the assets Addressable by enabling the Addressable option on each asset's Inspector window or by dragging the asset to a group in the Addressables Groups window. The Addressables system ignores existing AssetBundle and label settings for an asset.
- Change any runtime code that loads assets using the
AssetBundle
orUnityWebRequestAssetBundle
APIs to load them with theAddressables
API. You don't need to explicitly load AssetBundle objects themselves or the dependencies of an asset because the Addressables system handles those aspects automatically. - Add code to release loaded assets when no longer needed.
Note
The default path for the address of an asset is its file path. If you use the path as the asset's address, you load the asset in the same way that you load from an AssetBundle. The Addressable asset system handles the loading of the AssetBundle and all its dependencies.
If you chose the automatic conversion option or manually added your assets to equivalent Addressables groups, then, depending on your group settings, you end up with the same set of AssetBundles containing the same assets. The AssetBundle files themselves aren't identical.