Version: 2023.1
言語: 日本語
Unity のアセットパック
カスタムアセットパックの作成

Play Asset Delivery の設定

Play Asset Delivery は、Android App Bundle (AAB) のためのアセット分割ソリューションです。Play Asset Delivery を使用するには、プロジェクトを次のように設定してください。

  1. Use the AAB publishing format. For information on how to do this, refer to Publishing format.
  2. Split the application binary. For information on how to do this, refer to 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:
    • 2019.4.29f1
    • 2020.3.15f2
    • 2021.1.16f1
    • 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, refer to 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 won’t 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.

その他の参考資料

Unity のアセットパック
カスタムアセットパックの作成