- Home /
importing files?
Hello. May question may seem trivial, but I dont mean importing files into Unity itself. Is there any way to allow player's to import files (pictures, music, text, etc.) into a game after it is published (and then use it as a texture, audio source, etc.)? Thanks
Answer by Justin Warner · Dec 27, 2010 at 02:50 PM
It is possible... Save the text as a String, you can reuse that... Also, Mike (I believe), has a little thing where you can upload an image, and it show g-force's on your face...
Maybe you can save an array of a web address, use WWW to get the material, save it, then you can use it...
So:
User uploads image on to site like www.imageshack.us
User copies the direct link, and pastes it into the game.
Game saves it as a material using WWW.
Then game can use it...
This would be very problamatic, as you can probably tell...
Oh, and if you want it more of a color effect, you could always just change the RGB values, or change shader values from in game.
Yes, look at the WWW example to get a $$anonymous$$aterial, I'd test it out with both $$anonymous$$P3 and OGG formats though, I'm sure it is possible...