Search Unity

Question Recommendations for custom caching per group (not global)

Discussion in 'Addressables' started by kenamis, Oct 31, 2022.

  1. kenamis

    kenamis

    Joined:
    Feb 5, 2015
    Posts:
    387
    I'm trying to have an added cache directory, but I don't want it for the entire application. I want to have only certain addressables, could be per group, pull from a specific cache location. This is so that multiple different applications can request the same assets and use the same cached files, instead of caches per application.

    Does anyone have recommendations on how to do this?

    It looks like I'll have to write a custom AssetBundleProvider that changes the Caching.currentCacheForWriting before a request for a certain group and set it back to the default afterward, or maybe doing this in a WebRequestOverride?