Hi
I red this on lots of links, but I cant make it work for me.
What I want to do is to use this peace of code and use it to read a file on my localhost.
I use PHP in localhost. Id like to make some sort of communication with unity, but that is not important at this point. Id just like to make my 2 apps talks somehow from editor.
var w = WWW(url); yield w;
if (w.error != null) {
print(w.error);
} else {
print("Test ok");
formText = w.text;
print(formText);
}
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.
Can that be done at all?
Thanks in advance,
this is my first post, so I might have posted it wrong, on wrong place, etc.
EDIT:
When I set a default build as “standalone”, I can communicate with server through unity editor.