using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text.Json; using UnityEditorInternal; public class RequestAR { public void ARRequest(string url) { //using (UnityWebRequest request = UnityWebRequest.Post(url)) //{ // request.disposeUploadHandlerOnDispose = true; // request.disposeCertificateHandlerOnDispose = true; // request.disposeDownloadHandlerOnDispose = true; // // Send the request and wait for a response // yield return request.SendWebRequest(); // //Debug.Log("这个一条信息"); // // Check for errors in the request // if (request.result == UnityWebRequest.Result.Success) // { // Debug.LogError("接收信息Response: " + request.downloadHandler.text); // Debug.Log("成功"); // //return request.result; // } // else // { // // Output the response data if the request was successful // Debug.Log("Request failed: " + request.error); // } //} } }