Skip to content

Instantly share code, notes, and snippets.

Created August 29, 2021 06:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public Text resultText;
private IEnumerator GetResult(string token)
var postData = new List<IMultipartFormSection>();
postData.Add(new MultipartFormDataSection("Token", token));
var www = UnityWebRequest.Post("", postData);
yield return www.SendWebRequest();
if (www.result != UnityWebRequest.Result.Success)
resultText.text = www.error;
resultText.text = www.downloadHandler.text;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment