|
Hi I have managed to make a call only like this: I build a project, move it to my localhost (http://localhost/unity/test/WebPlayer.html), and from there make a call, and it works remotely, my online(or offline) files are updated when I make a call, but I can`t make it work from within unity3d editor. Thanks in advance, EDIT: When I set a default build as "standalone", I can communicate with server through unity editor.
(comments are locked)
|
|
Have you configured the WWW Security Emulation settings in the Editor? My understanding is that the Editor will attempt to emulate the security restrictions imposed on the web player. If you go here:
You can then specifiy the URL where your game will be hosted in the Inspector. This will allow the Editor to simulate the security restrictions that will be imposed on your game if you publish it to that address. This does not explain why you wouldn't be able to access a php script running on the same host as a published game. http://unity3d.com/support/documentation/Manual/Security%20Sandbox.html
(comments are locked)
|
|
It's possible that the Unity Editor is being blocked by your computer's firewall. Check the firewall configuration to make sure there's an exception for it. I found out later on today that when I set a default build (in unity options) to stand alone or windows build, it works, sends data to my online/offline server. It dont work when default build is set to webPlayer tho. Should it work?
Aug 06 '11 at 06:20 PM
Mefistofelos
any suggestions on this yet? Even my uploaded webplayer wont connect to the php in same directory. I might just be doing it wrong.. I tried url= http://address.com/scores.php, http://localhost/scores.php, just /scores.php, nothing. worked in stand alone for me too. always asks for the crossdomain.xml which doesnt work.
Sep 14 '11 at 12:49 AM
Wulfeous
(comments are locked)
|
