Questions tagged [unitywebrequest]
97 questions
0
votes
1 answer
How to debug the fact that StartCoroutine wont start the coroutine with no error?
The Class Gettext starts a Unitywebrewuest to google.com but after the console pints "index1" nothing happens and no error are displayed. How could I solve / debug this ( in Visual Studio I can't start the debugger).
Thank you a lot for the…

user12567588
- 59
- 1
- 8
0
votes
1 answer
JsonSerializationException: Unable to find a constructor for unity webgl build
I serialize a class in an azure function app and collect it via response to post in Unity3d.
It's a WebGL project and it works fine on Editor but throws exception on browser (chrome/firefox):
using Newtonsoft.Json;
namespace ARTFunctions
{
…

Sergio Solorzano
- 476
- 9
- 29
0
votes
1 answer
Azure functions http trigger Unity3d 2019.3
I've created a test HTTP Trigger azure function. I can trigger it correctly on azure portal and browser. However trigger from Unity editor gives "Error HTTP/1.1 500 Internal Server Error".
starting Azure function:
public static async…

Sergio Solorzano
- 476
- 9
- 29
0
votes
1 answer
Does UnityWebRequestAssetBundle use caching automatically?
I use the following code to download my asset bundle from a server.
If I run this code for a second time after a restart for my app, will it redownload the bundle or not because it's in the cache? and how will I know if it's redownloading / not…

SHAI
- 789
- 3
- 10
- 43
0
votes
0 answers
Send raw png byte[] with GetRawTextureData post with AddBinaryData: no data
I post to server raw byte [] of texture but shows 5B in sql database and when this data is downloaded the file is empty. Can you please provide guidance?
I post to server the raw byte[] of a texture like so:
byte [] imgByte0 =…

Sergio Solorzano
- 476
- 9
- 29
0
votes
1 answer
Iterating over multiple UnityWebRequests
I have been trying to get some API communication to work. I am using UnityWebRequests because I want to build as WebGL (I tried System.Net.WebRequest, which worked in game-mode, but was not compatible with WebGL). It might just be a problem of…

Philipp Siedler
- 87
- 9
0
votes
1 answer
Saving photo to server with PHP from C# (Unity Game Engine)
I'm currently working on a Unity Game Engine project in which I send a photo from the user's local computer within the game to a web server using PHP. My goal is to store the file path within a database and store the actual image on the server…

Fraccas
- 15
- 5
0
votes
1 answer
cant load asset from firebase storage to unity
I am creating an augmented reality app using vuforia and unity. i have uploaded my assetbundle to firebase storage and i want to retrieve a 3d model saved inside it and load it as a child on my image target game object but it i cant retrieve it.i…

malith priyashan
- 21
- 7
0
votes
0 answers
Store continuous data in SQL database using UnityWebRequest
I am setting up a SQL server database and want to store continuous data from my Unity app while running through HTTP request.
I am using Unitywebrequest.post to send the data to the database through coroutine call. However, this only allows the…

deduu
- 157
- 5
- 12
0
votes
0 answers
Unity web request working too slow, do you have any idea?
in unity 3d, I'm using UnityWebRequest class to call a web api but it responds too slow. There is no problem about the web api's speed. My unity version is 2018.4.2f and i am not able to change it because of dependencies. Do you have any idea or…

intellity
- 1
- 1
0
votes
1 answer
Is it possible to return the result of an UnityWebRequest from Coroutine method?
I'm trying to return the result of an UnityWebRequest request from a coroutined method, I thought about something like the following code:
private IEnumerator SendPostWebRequest(string url)
{
WWWForm form = new WWWForm();
…

Wadjey
- 145
- 13
0
votes
0 answers
Generic/unknown HTTP error when using unity 2017
I want to send and get data from my server using UnityWebRequest from unity 2107.4
I tried using code from here
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public class WebRequestExample :…

Imo
- 25
- 1
- 6
0
votes
0 answers
UnityWebRequest can't download on Android
I want to use the sound by url,and it's can work with UnityWebRequest on PC not on Android.
Why it can't work on Android ? Did I missing something?
This is my code ,can some give me a point . Thank you!
IEnumerator DownloadTheAudio()
{
…

DBDBDB
- 1
- 4
0
votes
0 answers
AddBinaryField always missing bytes in UnityWebRequest Post (iOS)
Unity 2019.1.9 and .12
I'm posting a WWWForm with several AddField text fields that get sent properly and also an AddBinaryField containing the bytes for an EncodeToPng image. The image arrives on the server always with missing bytes. This issue…

ina
- 19,167
- 39
- 122
- 201
0
votes
1 answer
Unity uploading player data text file to server, need some guide format
I need some guide in data format/syntax with php.
I have a simple form in my app, so user should fill the form and submit, Am successfully uploading my text file to my server, but need some good format.
Here is my code
[Header("Input…

Simple Arcade Gamers
- 97
- 1
- 1
- 11