I’m having trouble extracting a scene from an AssetBundle file with the WWW object. Before anyone asks, yes, I did look at http://answers.unity3d.com/questions/820023/wwwassetbundle-is-null-unity3d-455.html , but it wasn’t any help. The Asset Bundle is located at Dropbox - AssetBoundleTest - Simplify your life . And, I also know that I misspelled bundle in the folder name.
The Asset Bundle that I’m referring to is “gamescene” file. From within the coroutine I’ve tried both:
using (WWW www = WWW.LoadFromCacheOrDownload(@"https://www.dropbox.com/sh/rgxg06onv1vkt6d/AAAhNecppsitHt6nrDYUwJbga/gamescene", _levelVersion))
using (WWW www = new WWW(@"https://www.dropbox.com/sh/rgxg06onv1vkt6d/AAAhNecppsitHt6nrDYUwJbga/gamescene"))
In both cases, the WWW object some takes the time to download something, and both the progress property and the isDone property mark that it finished downloading. There are no errors in the error property. Yet, the assetBundle property is always null.
I checked the number of bytes (when done without the Caching class) that were downloaded, and I found that size-wise, it only downloads about 10% of the file before it marks that it is done downloading. The reason I said about 10% is not due to rounding, but because the amount downloaded changes from run to run. I’ve checked the file in question by using the AssetBundle.LoadFromFile(…) method, and loading that scene from the file worked out just fine when I used the AssetBundle class to load it from my hard-drive. Yet, loading it from my hard-drive isn’t going to be an option in the final product.
I appreciate any help you guys can give me.