Adding variables as a parameter in a URI or URL
I'm trying to get an object from a Back 4 App database. The URI only seem to work if I hard code the parameters. This works: string uri =...
View ArticleHow can I connect to OBS Websocket server and get the scene into Unity
I noticed that OBS has a Websocket server in-built, which provides us a port and everything. I am thinking if there is a way to access that Websocket server and retrieve OBS Virtual Camera feed...
View Articlei want to pass header in login API using unity web request
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using UnityEngine.Networking; using UnityEngine.UI; public class Login : MonoBehaviour { [SerializeField]...
View ArticleUnityWebRequest.Put to AWS S3
I'm using the documentation shown in the link below to try and put some data into a .txt file I've got on my AWS S3 account: https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.Put.html...
View ArticleHandling internet connection status the fastest way
I am currently implementing an Internet connection status handler popup for an app, i activate certain popups the moment the user has internet connection or not. So far i have been testing with...
View ArticleHow do you upload an AudioClip to a server?
My current approach is to take an AudioClip, turn it into a byte array, then put it into an UploadHandler, attached to a UnityWebRequest, to send a POST request to a server. Right now, when I pass...
View Articleloading a texture from a server makes my texture more dark / increases...
![alt text][1]loading a texture from a server makes my texture darker / increases contrast. - does only happen on LINEAR colorspace, not on gamma. - code: https://pastebin.com/DKVhPNWz - i tried:...
View ArticleGet URL from Unity Web Request
Hi all! My friend and I are currently working creating a game expanding on the Wikipedia Game. I'm currently working on setting the target page you have to get to in order to win. Luckly, wikipedia has...
View ArticlewebRequest timeout gives the following error " Native Collection has not been...
WWWForm form = new WWWForm(); form.AddField("username", loginData.username); // use userName form.AddField("password", loginData.password);// use pswd here using (UnityWebRequest www =...
View ArticleHave data back from a Coroutine
Hi, I am using Coroutines to perform web requests and take things from my asset folder. I would like to know how can I have the info taken from the web request (which are strings or also images) out of...
View ArticleConverting from WWW to UnityWebRequest
I've been trying to make a register function for a database and have run into an issue with using WWW where I'm told its obsolete and to use UnityWebRequest, however when I switch WWW with...
View ArticleWhat is the best way to communicate between to seperate Apps?
Hi, - Basically I want one app to tell the other app what to do. Specifically, the first app is controlled using a touchscreen and displays a 2D map which can be moved around. In the second App I have...
View ArticleCan't use UnityWebRequest in WebGL build
It just gives me an unknown error. Here's the code: UnityWebRequest www = UnityWebRequest.Get("http://cool-levels.x10.mx/Levels/" + id + ".txt"); yield return www.SendWebRequest(); returnValue = "Not...
View ArticleFirebase User Photo URL - Download Image 400 Bad Request
Hello, I was able to successfully implement Google Sign in with Firebase Auth for my game. I was able to print the following without any issues FirebaseUser.DisplayName FirebaseUser.PhotoUrl...
View Articlehow to get the unixtime from http://worldtimeapi.org/
Hi everyone; I'm not a good Cooder I'm still learning, can anyone help me with how can get the unixtime from the world time API website, http://worldtimeapi.org/ and save it as a public string?. Please..
View ArticleUnity Web Request Texture Get Texture,Unity Web Request Texture Get Texture...
I'm trying to download some png's from urls, but the file size for some of them is almost 2mb which results in a long time for unity to grab and process them. If it was a jpg I could easily pass in...
View Articlehow to load what WebRequest download
Hello 1- i want my game download a texture and save it in my harddisk 2- then Any time i need that texture , unity load that texture form my harddisk. i wrote a cod which do the first part(download...
View ArticleWhy does Post request to OpenAI result in error 400?
I am trying to use GPT3 in a game I am making but I can't seem to be able to call the OpenAI API correctly. I got most of this from the Unity docs. Here is the code I am using: public class...
View ArticleCurl error receieved when sending post request using UnityWebRequest
I am trying to post request via UnityWebRequest.Post method but got this error **Curl error 1: Received HTTP/0.9 when not allowed** Below mentioned is my code: WWWForm form = new WWWForm();...
View ArticleObject being created with last info
alright so im creating an object and its being created but theres a problem when its created it works but when i change something in the database i restart the game and it doesnt change i have to...
View Article