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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by ZenithCode · Dec 02, 2013 at 09:36 PM · assetbundlesbundlescachingloadfromcacheordownload

Asset bundles caching.IsversionCached() always returns false

I would like to know when a bundle downloaded using www.loadfromcacheordownload() has been cached or no.

I am trying do do that by using Caching.IsversionCached(), however this always returns false.

Is this the correct way of doing it? Or is there any other way?

Thanks

Comment
Add comment · Show 7
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 ThePunisher · Dec 02, 2013 at 11:00 PM 0
Share

What's the reason you are trying to deter$$anonymous$$e if it was cached? Using http://docs.unity3d.com/Documentation/ScriptReference/WWW.LoadFromCacheOrDownload.html will return the cached version if it was previously downloaded.

avatar image ThePunisher · Dec 02, 2013 at 11:03 PM 0
Share

In other words, there's no need to check if it has been cached or not because you still just wait on the operation to finish.

avatar image ZenithCode · Dec 03, 2013 at 09:20 PM 0
Share

I am trying to create a system which caches bundles in advance so I need to know which of the bundles you've downloaded already!

avatar image rastabbq · Oct 10, 2014 at 06:32 PM 0
Share

@ZenithCode I'm having trouble with this as well - did you make any further progress? (sorry I don't have enough reputation or points or whatever to upvote your question).

avatar image Stranger-Games · Dec 04, 2014 at 02:51 PM 0
Share

same problem here on android. The reason I need to check if the asset is cached or not, because if it is cached, no reason to display download scene, other wise the download scene will be displayed.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Helical · Mar 07, 2017 at 04:43 PM

I have it working in version 5.4.x

But I had the same problem. Eventually I found out that I was not testing with the FINAL URL that is actually being bundled. There is much concatenation going on to the final URL with all the versions and worldID. I would recheck that the URL you are feeding the function is the complete and final one indeed.

Context we need it to start loading stuff in the background for things we might need in the future. But we dont want to load it from cache.

Comment
Add comment · 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

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

22 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

Related Questions

Is there a way to add request headers to WWW.LoadFromCacheOrDownload? 0 Answers

Caching directory location on Android Devices? 0 Answers

LoadFromCacheOrDownload non asset bundles 1 Answer

how to combine Custom Package + Addressables? 3 Answers

[AssetBundles] - Why is my assetbundle.unload not unloading assets and therefore cannot loadfromcacheordownload again ? 0 Answers


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