- Home /
Webplayer can not read file from website
Hello, I dont know where is problem. My code is working in PC, Android but not in WebPlayer ... I need read file from website:
private version as string = 'http://www.cenda.cz/hry/FroggieJump/aktualniVerze.txt'
.
.
www as WWW = WWW(version)
yield www
if(www.error):
print("No net")
else:
.
.
I cant connect, so I have still "No net" print Is it some permission?
Comment
Answer by robertbu · Mar 31, 2013 at 02:17 PM
When running as a web player, you app runs in a "security sandbox." In particular, you cannot access data on any website but the one you are using for hosting. You can read more about it here:
http://docs.unity3d.com/Documentation/Manual/SecuritySandbox.html
Thanks for tip! I created xml in root of ftp, it is working good in IE and FireFox, but not in Chrome :( Is there something special for Chrome browser?