Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Anxo · Nov 20, 2014 at 04:15 PM · assetbundlewwwassetbundlesloadfromcacheordownload

LoadFromCacheOrDownload Version Variable Reset?

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anxo · Nov 20, 2014 at 07:20 PM 0
Share

bumpetybump

avatar image Anxo · Nov 21, 2014 at 03:10 PM 0
Share

looks like I have asked one of these unanswerable questions. I have reached the forefront of human knowledge, I have discovered unknown territory. I A$$anonymous$$ GOD! aka bump.

avatar image Anxo · Nov 24, 2014 at 03:43 PM 0
Share

bumping it up.

avatar image Anxo · Nov 25, 2014 at 05:52 PM 0
Share

Going to keep trying to get some eyes on it.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · Dec 11, 2014 at 07:37 AM

I think what you need is the Caching class and the method which would solve your problem is Caching.CleanCache. When in production you should never decrease any version code / number. If you're still in development and haven't published your application yet it wouldn't matter of course.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anxo · Dec 11, 2014 at 03:39 PM 0
Share

@Bunny83 Thank you, I used to be able to ask questions and they would be answered in an hour, now the questions get so deep that it takes 2 weeks and a direct request for viewing to be answered. I would love to know what you googled to find this answer as I have been searching for it for a long time.

You are a valuable member to the Community, Thank you.

avatar image Bunny83 · Dec 11, 2014 at 04:04 PM 0
Share

Well, i searched for something like unity reset cache version The 4th item is the Caching class ^^

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to download multiple asset bundles in serial order? The error of "cant load 'name' assetbundle as it is already loaded" comes after first assetbundle download. Please help. Needed urgently! 0 Answers

How do you package/retrieve Asset Bundle Dependencies 0 Answers

LoadFromCacheOrDownload non asset bundles 1 Answer

WWW::Dispose doesn't work 1 Answer

AssetBundles caching bug? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges