- Home /
LoadFromCacheOrDownload CRC bug?
Hello everyone.
I'm having difficulty getting the LoadFromCacheOrDownload function work with CRC.
I'm getting the following error:
CRC Mismatch. Expected 539cd90e, got c320828b
I'm using PHP hexdec commend to get my CRC from the file.
The hexdec gives me
1402788110
which is
539cd90e
converted to uint.
Any ideas whats wrong?
BTW using unity 4.2.0f4
I sent a mail to unity support.
Here is the replay:
The CRC value that you need to pass is generated by Unity using a different method. In 4.2 you need to look at the value printed by the Editor in the console when you fail to load the AssetBundle. This is unfortunately a bit ackward at the moment, but it has been fixed for the upco$$anonymous$$g release, 4.3.
So apparently, unity invented their own way of creating crc32.
Because I even triad a C# way of creating the crc (insted of the PHP) and got the same results.
So, I'm gonna leave this question open until 4.3 is out so people are aware of the issue.
Answer by dorpeleg · Jun 17, 2014 at 09:56 AM
There is now a solution(4.3), you can now get the crc from the BuildPipeline.BuildAssetBundle method.
Your answer
Follow this Question
Related Questions
Can't load asset bundles offline even if they are cached. 0 Answers
Using AssetBundles as IAP Crashing 0 Answers
WWW::Dispose doesn't work 1 Answer
Is there a max LoadFromCacheOrDownload cache size? 0 Answers
Save Hash128 from Asset Bundle Manifest 2 Answers