- Home /
In-game Registration form
Hi, I am building a game which requires a UI form within the game to send out info. The design/UI itself is not a problem.
The problem is to send the info out via the internet.
I want to create a seperate build of the game which is only available to me. This build must collect the data from the client forms.
Basically I need a way to send out the data, and recieve the data in a list, all within Unity 3d.
What is the best way to send/recieve the form data between devices?
Thanks.
Answer by softrare · Jan 20, 2015 at 06:21 PM
Check out http://docs.unity3d.com/ScriptReference/WWWForm.html
Example:
// Create a Web Form
var form = new WWWForm();
form.AddField("frameCount", Time.frameCount.ToString());
form.AddBinaryData("fileUpload", bytes, "screenShot.png", "image/png");
// Upload to a cgi script
var w = WWW(screenShotURL, form);
yield w;
if (!String.IsNullOrEmpty(w.error))
print(w.error);
else
print("Finished Uploading Screenshot");
The example is taken from the documentation.
You could also grab one of the ready-and-set solutions on the asset store like my opportUnity which can function as a registration/login module but can also do more if you wish: https://www.assetstore.unity3d.com/en/#!/content/21886
Did this help you in any way? If so please mark the question as answered or if not, please state what problems you are still having.
No, this is slightly helpful however it does not answer my question.
Your answer
Follow this Question
Related Questions
Saving and Fetching Cookies from UnityWebRequest 0 Answers
2D Camera and Buttons UI for Local Player 0 Answers
ios Crash SetStatusCode() 0 Answers
modernized master server script? 1 Answer
UNET how to connect to the unity network 0 Answers