docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Manage asset packs at runtime

    You can use Addressables content packed into asset packs without modifying any Player code. There is no need to clear the AssetBundle cache, as the Android system automatically deletes obsolete asset packs from the device when the application is updated.

    Load and remove asset packs

    When you load Addressable assets that are packed into On Demand asset packs, the Player tries to install the required asset packs from Google Play. Depending on the network connectivity and the asset pack size, there might be a significant delay before the Addressable asset can be instantiated and displayed. To avoid this delay, you can force the required asset pack to load beforehand using AndroidAssetPacks.DownloadAssetPackAsync method.

    If you do not need any Fast Follow or On Demand asset packs anymore, you can forcefully remove those from the device using AndroidAssetPacks.RemoveAssetPack method. Please note that, if the Player tries to load an already removed asset pack, the Android system automatically installs the same asset pack again on the device.

    Asset packs naming requirement

    To use AndroidAssetPacks methods to manage asset packs manually, you must know asset pack names for the Addressable groups. The easiest way is to name your groups (or Custom Asset Packs) to comply with the asset pack name requirement by Google.

    Note

    Google’s requirement states that the asset pack names must start with a letter and can only contain letters, numbers, and underscores.

    If you name your Addressable group (or custom asset pack) to comply with Google's requirement, the Addressables for Android package uses the same group name for the asset pack. Otherwise, the package automatically generates asset pack names by removing forbidden characters. If required, the package might add Group prefix and some numeric postfix. In this case, you can find the actual names inside the generated App Bundle or the exported Gradle project.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)