Version: 2022.3
Asset packs in Unity
Create a custom asset pack

Set up Play Asset Delivery

Play Asset Delivery is the asset splitting solution for Android App Bundles (AAB). To use Play Asset Delivery, set up your project to:

  1. Use the AAB publishing format. For information on how to do this, see Publishing format.
  2. Split the application binary. For information on how to do this, see Splitting the application binary. If Split Application Binary is grayed out, it means your current Unity Editor version doesn’t support Play Asset Delivery. To resolve this, update the Unity Editor. All versions of Unity from 2021.3 support Play Asset Delivery. Support was also added for previous Unity versions in the following patch releases:
  3. 2019.4.29f1
  4. 2020.3.15f2
  5. 2021.1.16f1
  6. 2021.2.0f1

When you build your application, Unity creates an AAB that includes your application split into a base module and asset packs. For more information, see Asset packs in Unity.

Important: Unity uses the PLAY_ASSET_PACKS Gradle template variable to specify which asset packs to include in the Android App Bundle. If you use a custom Gradle template that was created before Unity supported Play Asset Delivery, your template will not contain this variable. Because Unity automatically generates the values for this variable, it’s best practice to recreate your Gradle template file from the current Unity version and reapply your modifications on top.

其他资源

Asset packs in Unity
Create a custom asset pack