- Home /
www can't download file in webplayer
The file is on my http server,and it work well in the editor; but when i published the webplayer, it dosn't work , in the %temp%/UnityWebPlayer/log/log_343a*.txt, the last line is "starting www download: http://loclahost/game/webplayer/female_base.assetbundle"; WWW.isDone won't be true forever.
I found that the WWW.progress is 1.0f, but the WWW.isDone is false, what's the wrong with webplayer?
Answer by Bunny83 · Mar 29, 2012 at 10:23 AM
Are you sure you have a crossdomain policy on your server and you have Unity pro?
Read here about the security sandbox and here about AssetBundles
Answer by simonxingpeng · Mar 30, 2012 at 06:00 AM
Yes i'm sure that the crossdomain had on my server, and it work well in editer, but will be work well on published exe sometimes, in the webplayer it dosn't work.
Answer by simonxing · Apr 12, 2012 at 09:28 AM
I found an answer at http://answers.unity3d.com/questions/13977/www-in-webplayer-vs-standalone.html.
Answer by simonxing · Apr 13, 2012 at 07:37 AM
I have another problem after up question, the LoadAsync is crashed after WWW.isDone;