Use this guide to build Play Asset Delivery into your Unity project.
Unity AssetBundle files contain serialized assets that can be loaded by the Unity engine while the app is running. These files are platform-specific (for example, built for Android) and can be used in combination with asset packs. Most commonly, one AssetBundle file is packaged into a single asset pack, with the pack using the same name as the AssetBundle.
At runtime, use the Play Asset Delivery for Unity class to retrieve an AssetBundle packaged in an asset pack.
Configure AssetBundles using the UI
Configure each AssetBundle in an asset pack:
- Select Google > Android App Bundle > Asset Delivery Settings.
- To select folders that directly contain AssetBundle files, click Add Folder.
For each bundle, change the Delivery Mode to Install Time, Fast Follow, or On Demand. Resolve any errors or dependencies and close the window.
Select Google > Build Android App Bundle to build the app bundle.
Configure AssetBundles using the API
You can configure asset delivery through editor scripts which can be run as part of an automated build system.
class to define which assets to include in an Android App Bundle build, as well
as the delivery mode of the assets.
Integrate Play Asset Delivery into your game or app code using Unity.