Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

LoadFromCacheOrDownload Version Variable Reset?

$
0
0
Hello Unity Community. When using the WWW.LoadFromCacheOrDownload method there is a version variable that can be set as you can see here. http://docs.unity3d.com/ScriptReference/WWW.LoadFromCacheOrDownload.html When this version is set to 1 for instance, like so: int versionNumber = 1; WWW downloadedAssets = WWW.LoadFromCacheOrDownload("url of unity3d file", versionNumber); Then it will download the assets and set that version number to 1. If I run the code again, it will not download it as version 1 has already been downloaded, if I set it to 2, it will download it again as one would expect. However, I am wondering where this variable is stored and how can I reset it. For instance, if I want to download version 1 and overwrite version 2 how would I do that? I have tried PlayerPrefs.DeleteAll but it does not appear to be stored in there. Thank you for reading.

Viewing all articles
Browse latest Browse all 312

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>