Web player WWW problem

I’m having some trouble with the WWW class in Unity. My code downloads an XML file, which then contains references to several additional XML files to download. Whenever I play the project in the editor, it works perfectly and downloads the correct data. But when I build a web player, sometimes it works and sometimes it doesn’t.

I’ve rewritten the code twice and it still has the same result, and only on the web player (running through Safari or Firefox). A previous member had the same issue but he claims it went away by itself - however this isn’t happening for me!

Does anyone have any ideas why this is happening? Or perhaps suggestions on good ways of debugging the web player?

Thanks!

you can try right clicking on your assets and rebuilding your project. that usually fixes my web player bugs.

This is an issue in the WWW class where it sometimes reports the download is complete too early. This seems to happen on some web servers but not on others. We will fix this in the next release.
Until then here is a workaround:
http://www.unifycommunity.com/wiki/index.php?title=GetXMLHack

Ah I see. Good to hear it’s a known issue and is on the way to being fixed! In the mean time I’ll use the work-around. Thanks!