Quantcast
Channel: Latest Questions by uni
Viewing all articles
Browse latest Browse all 14

simple WWW code works in editor but not on server

$
0
0
var www; var cube:GameObject; function Start() { www = new WWW("http://www.mywebpage.com/game/unitytest2.php"); yield www; if(www.text == "hello"){ cube.renderer.material.color = Color.blue; }else{ cube.renderer.material.color = Color.red; } } The php code resides in the same directory on the server and the php code simply echo's "hello" to the client. There is a crossdomain.xml file in the root and in the local directory where the unity file, html page, and php files live. Any help is appreciated.

Viewing all articles
Browse latest Browse all 14

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>