I just upgrade my project from 3.0 to 3.4. I am loading asset bundles from my server, when I build the web version, they no longer work (game freezes, no error messages), the standalone and the editor versions work fine, any ideas. Also, I rebuilt the assets once I upgraded, and still didn’t work.
private IEnumerator StartLoading(string id){
WWW www = new WWW(staticUrl + id + ".unity3d");
yield return www;
AssetBundle bundle = www.assetBundle;
Texture far1 = bundle.Load("Far1",typeof(Texture)) as Texture;
}
ensure that you build the asset bundles for the right platform, check the code you used to build it.
if you build them for webplayer they should work in standalone, the opposite isn’t granted though if I recall right.
Also, did you check it in the editor play mode check the logs for potential errors reported?
I’m building for the web platform, When I play the scene in the editor, the assets load, when I play in standalone it loads as well, only the webplayer doesn’t work. I don’t understand, I upgraded and now my entire project is broke. I have everything properly backed up with the older version, but I really need to use 3.4 from here on out
checked the log, no errors
dreamora, can you please take a look at a sample project (52kb) i created? For me, the web version doesn’t work but standalone and the editor are ok
www.interactivedesignspecialist.com/AssetTest.zip
Not this weekend but I might find time next week
But one thing you didn’t mention: you load the bundle there. but where do you put the .Unload for the bundle? cause on the standalone and editor it would throw an error if you try to load a bundle thats still loaded … but if you do the same on webplayer or mobile you are screwed.