Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Limit number of cached bundle versions

Discussion in 'Addressables' started by ST_ProductVIz, Aug 20, 2020.

  1. ST_ProductVIz

    ST_ProductVIz

    Joined:
    Nov 29, 2017
    Posts:
    27
    Hi,

    Is there any possibility to limit the number of cached asset bundle versions the Addressable system creates for each remote group on the device? Our groups can chang frequently and therefore, the cache gets bigger and bigger :)

    If we need to implement it ourselves using https://docs.unity3d.com/ScriptReference/Caching.html -> How can we determine at runtime to which bundle a specific Addressable asset (key) belongs?
     
  2. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    566
    This is a key area in which Addressables is lacking. The existing clear cache APIs are nearly useless. Basically your only option is to clear the whole cache and re-download everything. They need to add a way to intersect new catalog against cached catalog to find the changed bundles, and delete them (I believe the old AssetBundleManager did that).
     
  3. ST_ProductVIz

    ST_ProductVIz

    Joined:
    Nov 29, 2017
    Posts:
    27
    Thank you for your answer! That's sad to hear :-(

    What does the flag "Use Asset Bundle Cache" actually do? Setting it to false means an asset can never be loaded without an internet connection even if it has already been loaded in a previous session?