playMaker

Author Topic: "Caching.ClearAllCachedVersions" to delete a specific AssetBundle(s)  (Read 2944 times)

PleaseHelpMe

  • Playmaker Newbie
  • *
  • Posts: 20
Hello, I previously requested an action that deleted EVERY AssetBundle so it can download a new update without having the old version taking up storage space.

For some reason I did not notice this one before since Googling has resulted in Caching.DeleteFromCache is obsolete from a previous version.

However, now there is an action called "Caching.ClearAllCachedVersions" that will delete Every Version of a specific AssetBundle by using its AssetBundle Name. The link has sample script. https://docs.unity3d.com/ScriptReference/Caching.ClearAllCachedVersions.html

This is better for most cases than the previously requested action since it won't require the player to download every single AssetBundle again and would only require them to download the specific AssetBundle file that needs to be updated.

Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: "Caching.ClearAllCachedVersions" to delete a specific AssetBundle(s)
« Reply #1 on: September 13, 2018, 01:41:01 AM »
Hi.
Maybe it is best to contact tcmeric  directly as hes working on assetbundle actions :)