Could someone help me in my code it appears that WWW is obsolete and that I have to use UnityWebReques - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, June 29, 2023

Could someone help me in my code it appears that WWW is obsolete and that I have to use UnityWebReques

public IEnumerator CO_Createuser(string user, string email, string pass, string repass, Action response) {

    WWWForm form = new WWWForm();
    form.AddField("user", user);
    form.AddField("email", email);
    form.AddField("pass", pass);
    form.AddField("repass", repass);
    WWW w = new WWW("http://localhost:80/Game/createuser.php", form);
    yield return w;
    Debug.Log(w.text);
    response(JsonUtility.FromJson<Response>(w.text));

}

Esto probe perotamoco me funciono

UnityWebRequestweb=UnityWebRequest.Get("http://localhost:8080/webServicePlataformaDigital/Login.php"+"?alias="+u+"&&password="+p);



source https://stackoverflow.com/questions/76575714/could-someone-help-me-in-my-code-it-appears-that-www-is-obsolete-and-that-i-have

No comments:

Post a Comment