SHARE
TWEET

Untitled

a guest Jun 15th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private IEnumerator GetUsers(string url)
  2. {
  3.  
  4.     using (UnityWebRequest webRequest = UnityWebRequest.Get(url))
  5.     {
  6.         // Request and wait for the desired page.
  7.         yield return webRequest.SendWebRequest();
  8.  
  9.         if (webRequest.isNetworkError)
  10.         {
  11.             Debug.Log(": Error: " + webRequest.error);
  12.         }
  13.         else
  14.         {
  15.             info.text = "DATOS RECIVIDOS:n" + webRequest.downloadHandler.text;
  16.         }
  17.     }
  18.  
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top