"The type or namespace name 'UnityWebRequest' could not be found." Version 5.5.2p2

 



You need to include the UnityEngine.Networking namespace (not Unity.Networking)

  1. using UnityEngine.UI;
  2. using UnityEngine.Networking;

public void Subscribe() {
        Email = email.GetComponent<InputField>().text;
        var n = new JSONObject();
        n["entry_1064445353"] = Email;
        string json = n.ToString();
        Debug.Log(Email);
        StartCoroutine(Post(json));
    }

Comments