Right now I am accessing data from web server. But main problem I was facing right now it that I can’t able to access recent data on the spot. Not always this is happening but mostly it is taking 5 to 10 minutes delay.
If same URL, I paste into browser then I have latest data access over their but Unity have older data to display. After few minutes automatically Unity has latest data.
I want accuracy in data retrieval as browser has. At present I am using following code for fetching data from web server.
WWW www = new WWW (url);
//Load the data and yield (wait) till it's ready before we continue executing the rest of this method.
yield return www;
if (www.error == null) {
//Sucessfully loaded the XML
Debug.Log ("Loaded following XML " + www.text);
} else {
Debug.Log ("ERROR: " + www.error);
}
If any other way exist that can solve my problem then give me help in this.
Thank you very much! Can you give some insight in how you add those dummy parameters?
– SilverHuber