User Feedback Survey (updated) - How to Send Unity Data to Google Forms using UnityWebRequest

Описание к видео User Feedback Survey (updated) - How to Send Unity Data to Google Forms using UnityWebRequest

using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;


public class Survey : MonoBehaviour
{

[SerializeField] InputField feedback1;

string URL = "";


public void Send()
{
StartCoroutine(Post(feedback1.text));
}

IEnumerator Post(string s1)
{
WWWForm form = new WWWForm();
form.AddField("", s1);




UnityWebRequest www = UnityWebRequest.Post(URL, form);

yield return www.SendWebRequest();

}


}

Комментарии

Информация по комментариям в разработке