Search Unity

Feedback Automatic cache cleaning policy for ScriptableBuildPipeline

Discussion in 'Asset Bundles' started by Kichang-Kim, Dec 17, 2019.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Hi. I'm using ScriptableBuildPipeine for building assetbundles. My project is actively changing everyday, and assetbundle is built too. The problem is that the cache of assetbundles are generated at every build and eventually fills up the hard disk of my build machine.

    The only solution is that remove cache folder from Library manually, when my build job is failed due to full-of-harddisk error.

    I hope that ScriptableBuildPipeline's cache system should have automatic LRU cleaning policy with max-size-restriction.
     
  2. capyvara

    capyvara

    Joined:
    Mar 11, 2010
    Posts:
    80
    I believe you can set a maximum cache size for it on Unity preferences, the default is 200Gb
     
    Kichang-Kim likes this.
  3. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Ah, I didn't notice that. Thanks for sharing!