- Home /
there is ANY WAY to upload a file to a unity web project?
I need to upload a texture/audio-file from a local disk to a unity web project, from the same project. I was looking lot to do this and I still don´t have an idea if this is someway possible. If someone have and idea... it will save my life.
Why are you doing this? And what do you mean it's in the same project? Why would it need to be uploaded?
I´m doing a 3D art-gallery maker and what I need is that the user can upload his pictures.
Answer by DecipherOne · Jul 06, 2013 at 01:25 AM
Unity could be used as an interface for this functionality. You would still need a server to host the files. You would have to write code in the unity interface to interact with whatever database you are using.
I already have a host and a database but I can´t find any tutorial or any kind of help for this...
Then the wouldn't so much be a unity question, it's a database question. You'll most likely need to use c# for this stuff so you're better off searching for tutorials on manipulating databases with C#.
You're going to want to look at interfacing the database with whatever language you're using. So if you're using c#, look for something such as http://answers.unity3d.com/questions/8171/connect-to-the-sql-database.html
But it's going to be deter$$anonymous$$ed by which language and the type of database. Once you establish a connection between your code and the database, you'll have to interact with the database through your code. Then hook up the unity interface with your scripts to do specific tasks.
Your answer
Follow this Question
Related Questions
How can I load multiple files from a hosted folder? 1 Answer
Uploading problem, GUI Missing 0 Answers
godaddy(linux) and unity 4 Answers
Websites hosting games 3 Answers