- Home /
Adding texture into array at runtime
Hello again :)
Working on a little project and what i'm trying to do is I've get a set amount of color textures, the normal black, blue, red, etc but what I also want to do is allow the user to add there own texture say wood, a image of there dog or something lol. I was just wondering is this kind of thing even possible with Unity and if so has anyone tried it?
Thank you :)
Answer by DaveA · Dec 14, 2012 at 08:35 PM
There is code to do that in the scripting reference. A wonderful piece of documentation that: http://docs.unity3d.com/Documentation/ScriptReference/WWW-texture.html Assuming this runs in a web browser, you would have to provide them a way to get their picture uploaded to your server, or proxy a url through your server. Otherwise, they can provide a URL to their image, that's it.
Ah didn't see this on their Docs, would there be away were they could load in the image from there pc/mac? as I kind of wont to make the game a standalone game ins$$anonymous$$d of in a web browser.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Setting Scroll View Width GUILayout 1 Answer
Create big city for car game? 2 Answers
GUI Skin Custom textures in C# 2 Answers
Bigger size button help 2 Answers