unity html get request
// Call Method Through: StartCourotine(SendRequest());
IEnumerator SendRequest()
{
UnityWebRequest request = UnityWebRequest.Get("REQUEST_URL");
yield return request.SendWebRequest();
if(request.isNetworkError || request.isHttpError) {
// Error Occurred
Debug.Log(request.error);
}
else {
// Response can be accessed through: request.downloadHandler.text
Debug.Log(request.downloadHandler.text);
}
}
Also in C#:
- C# previous method
- c# linq join multiple conditions
- rotatearound unity
- bind repeater to dictionary
- iframe set html content c#
- for each property in object c#
- how to use more than one condition in ef join
- ecs get specific entities with component
- webclient c# example post
- how to create a list c#
- tachyons
- asp.net c# write string to text file
- asp.net textarea disable resize
- unity change text
- reference to gameobject in different scene unity
- c# random number between 0 and 1
- check which activity in focus in android
- get out of foreach statement c#
- c# download string url
- c# shorten an definition
- how to generate random numbers in c#
- reload scene unity
- c# trim string
- how to disable a gameObject unity c#