Playmaker Forum
PlayMaker News => General Discussion => Topic started by: PleaseHelpMe on August 30, 2018, 04:51:23 AM
-
Hello, I am looking for an action for AssetBundles Cache.ClearCache https://docs.unity3d.com/ScriptReference/Cache.ClearCache.html (https://docs.unity3d.com/ScriptReference/Cache.ClearCache.html).
I want the AssetBundle cache to be cleared immediately on action so a new AssetBundle can be downloaded in it's place.
I have taken a look at the additional AB actions here https://github.com/dumbgamedev/playmaker_assetbundle (https://github.com/dumbgamedev/playmaker_assetbundle) and it does not contain any way to remove AssetBundles from cache. Only to keep incrementing the version which means that all previous versions are kept for "150" days by default https://docs.unity3d.com/ScriptReference/Cache-expirationDelay.html (https://docs.unity3d.com/ScriptReference/Cache-expirationDelay.html). Thus, increasing storage space for unused cache from previous versions.
-
The playmaker ecosystem has a few other AssetBundle actions. But it does not appear to have the actions you are needing. Perhaps put in a request for it in the action request section?
-
Here you be. Ive added an action to clear cache or set a delay to clear cache. Action called "clear cache".
You can find it here: https://github.com/dumbgamedev/playmaker_assetbundle
Tested on unity 2017 and above.
-
Here you be. Ive added an action to clear cache or set a delay to clear cache. Action called "clear cache".
You can find it here: https://github.com/dumbgamedev/playmaker_assetbundle
Tested on unity 2017 and above.
Awesome! Worked perfectly. Thank you very much!