AssetBundle Unity Cache

Hello!

I am looking for a way to manage cache files of my application, i’m working with Android and iOS.

I download Bundles via WWW.LoadFromCacheOrDownload, and my goal is to manage the files in cache, in order to list or delete them.

When I access to the folder where the files are saved (persistentDataPath/…/files/UnityCache/Shared/) I find some folders with a long string name (for example …/Shared/b2ee2b99701af83199d653e4/) that comes from a downloaded AssetBundle.

My question is, where does that name come? How does unity generate that name?

I need that in order to know which assets have been downloaded by the user and which haven’t. Basically I need to know which cache folder name will have every assetBundle I have, or change the name by one I want.

Any clue of that? Sorry for my bad understanding.

Thanks a lot!

You can’t and indeed should not do that! If you start to experiment with that stuff you can be sure that you break Unity’s functionality. And even worse, you never know if Unity changes something in future releases that break your hacks.

When you want to know what the user has downloaded, you have to save that information on your own. Though, you certainly can’t know if something from the cache was deleted. However, what you are trying to do is really not a good idea, meaning you should find a different solution for you problem.