Enumerating the Unity Cache (Licensed version)

Hi,

I’ve noticed that the method associated with enumerating the Unity Cache (Caching.index) has been deprecated. Is there no way to check what AssetBundles have previously been cached and clear them out?

Best regards,
Shaun.

You can use Caching.IsVersionCached to test if an AssetBundle exists in the cache. If you want to clear the cache you can use Caching.CleanCache.

Unity will automatically delete AssetBundles from the cache if it’s running out of space using a Least Recently Used algorithm.