- Home /
WWW object download
So here is my code:
public IEnumerator GetExistingGames()
{
download = "Method was called"; // I'm using this to debug (printed in GUI)
// Create a form object to get existing games
WWWForm form = new WWWForm();
// The name of the player
form.AddField("id", user_name);
// Create a download object
// global variable, where it try to access its text elsewhere in the code
existingGames_Download = new WWW(existingGames_URL, form);
// Wait until the download is done
yield return existingGames_Download;
}
I've placed comments throughout the code, but basically when I call the method I don't even get the "Method was called". I get a request on my server to try and get the existing games, but existingGames_Download object always remains null. So I'm guessing that it isn't downloading properly, any ideas?
Comment