Hello all,
I was wondering how to stream back php echos. In my php file i have a loop and inside the loop i have an
echo(“user processed”);
back in unity i would like to display the echo(“user processed”) as its happening. Right now in my unity script i have
IEnumerator ProccessUser(){
WWW w = new WWW(urlHost);
yield return w;
if(w.error != null)
Debug.Log(w.error);
else
log.text = w.text.ToString();
}
The issue with this is its waiting for the php to be finished running before i receive the echo. Is there a way to get it every time the echo happens?