Questions tagged [unitywebrequest]
97 questions
1
vote
1 answer
How to update Url used by UnityWebRequest to InputField?
I want the user to be able to change the ID of the link, which is why I used InputField to get their input. Unfortunately, I can't seem to figure out, how to make it work smoothly with a Coroutine.
When I try to update the link, it just ends in an…

tryingtoflow
- 61
- 1
- 6
1
vote
1 answer
How to add CancellationToken on Unity Web request?
I wrote the following code that successfully downloads a photo from the link. But I want to set a cancellationToken for the request that can be activated by pressing the x key. please guide me.
private async void GetImage()
{
var request =…

KiynL
- 4,097
- 2
- 16
- 34
1
vote
1 answer
Starting Coroutine in Main Thread
So I'm trying to execute a UnityWebrequest, which needs to start from a Coroutine.
Now trying to Debug everything at some point I figured out calling the Coroutine from the Start function works (receiving the Debug.Log messages), but calling it from…

Spoon
- 173
- 1
- 2
- 12
1
vote
1 answer
Unity's UnityWebRequest GET fails for http://localhost:8000 when HttpClient, browser, and postman all succeed? Server is in Rust: Rocket
To keep things short trying to get a Unity client to work. It is making a simple Get request to: "http://localhost:8000/api/board". This request works fine:
in my browser
postman
.net's HttpClient inside Unity editor mode
if I build and run a WebGL…

sharp7j
- 11
- 3
1
vote
0 answers
Why is UnityWebRequest so slow in Unity 2020.3.19f1
I just upgraded my project from Unity 2017 to 2020.3.19f1 version, however I found that our UnityWebRequest response time became so long. Here is my test using UnityWebRequest to Get www.yahoo.com built by an empty project within Unity 2017 and…

shen
- 11
- 2
1
vote
0 answers
unity unitywebrequest 400 method not allowed error
I am trying to send JSON to my python flask web server but when I run the code I got "method not allowed" for some reason
IEnumerator Upload()
{
var something = new Data();
//Debug.Log("something: " + something);
var jsonString =…

amit
- 11
- 1
1
vote
1 answer
Multiple Asset Bundle Download Cache Problem
I'm using UnityWebRequestAssetBundle.GetAssetBundle(url, bundleData.version, bundleData.crc); system and I can successfully download and use bundleAssets online. But when I want to download multiple bundle assets and save them to use offline for…

Volkan Ege Dindar
- 103
- 10
1
vote
1 answer
Get the link of the uploaded file with UnityWebRequest and php
I want to allow the user to use a local image from his machine and upload it to the server.
What I did is use UnityWebRequest in-game, load the image, send it to a PHP file on the server, and wait for the reply to remember the URL where the file si…

Matthew
- 149
- 2
- 11
1
vote
0 answers
How can I show unity UI Slider filling with unitywebrequest downloadProgress for any file type in android?
(Sorry for bad english)
Hi, I'm using this code for download assetbundle or .mp4 files via unitywebrequest :
public IEnumerator Download (List urls) {
for (int i = 0; i < urls.Count; i++) {
string ext =…

Nastary
- 345
- 4
- 19
1
vote
1 answer
Using UnityWebRequest to receive JSON data from API endpoint not working
I am building a economy simulation game using Unity and have the need to pull live exchange rates from and API. For this I am using fixer.io. I have implemented this using UnityWebRequest, see below my code:
using Newtonsoft.Json;
using…

DedSec
- 53
- 2
- 8
1
vote
0 answers
unity web request got error for local files on mobile
I load images from my local destination to unity the code is:
Texture2D imgTexture;
using (UnityWebRequest req = UnityWebRequestTexture.GetTexture(filePath))
{
yield return req.SendWebRequest();
if (req.isNetworkError)
…

eomer
- 3,514
- 7
- 30
- 42
1
vote
0 answers
Using Qualtrics API to import responses from Unity
I've got a survey in Qualtrics, and a game created in Unity that would capture responses to those survey questions. What I'm trying to do is to upload the captured responses directly from Unity to Qualtrics, however, I'm having trouble figuring out…

user3104584
- 11
- 1
1
vote
1 answer
How to wait for the complete execution of a IEnumerator function in C#?
I want to get the result of a webrequest in another function but unfortunately the variable of the webrequest stays empty, because the webrequest isn't already xecuted when I call the variable. I call the OpenFile Function which calls the GetText…

user12567588
- 59
- 1
- 8
1
vote
1 answer
GL_OUT_OF_MEMORY and android app crashing using unity?
I was trying to load images at run time into the Image Library from many image links for my AR project.While testing the below code my android app crashed with following errors
using System.Collections;
using System.Collections.Generic;
using…

zyonneo
- 1,319
- 5
- 25
- 63
1
vote
1 answer
Set UTF-8 Encoding on Azure Functions Http Trigger
EDIT Just in case im misdiagnosing,
Here is an example of what is sent:
T6NLmFUZdYYdvhxmq67WD/TiShKbE0rK0xdHXJGo5sVx9/CrmBTViiQxjqLEQN66HkAUB9LvXW6C55maPLMd7u2cwNc8OlNuPTvZfx63Aawso/2mvewXQauUytGZ1Q8D
And what is…

Dracon
- 81
- 1
- 7