Hi,
I’m new to unity
i created a game that include a billboard and i want to allow the players to place their own image on that billboard, wail running the game.
is that possible? and if so, how do i go about and do this?
thanks
yahav
Hi,
I’m new to unity
i created a game that include a billboard and i want to allow the players to place their own image on that billboard, wail running the game.
is that possible? and if so, how do i go about and do this?
thanks
yahav
Hi, welcome to the forum!
Is this for a webplayer? If so, you will probably need to use a web form to upload the image to the webserver. You can then access it using the WWW class. The image will need to be JPG or PNG for Unity to use. You can also use the WWW class with a file:// URL to access image files on the local machine, if you want a standalone game. You would probably just prompt the user to put the image file in a particular folder so that Unity can access it.
thanks andeeee,
its a stand alone game. so i will be using the second option.
is there a place where i can find a quick written javascript for that? or any other goodies for that matter?
Hi andeee,
i did what you said using the WWW class and it work fine on any URL path i gave it.
however, when i try to use it with File:// i always get an error:
“You are trying to load data from a www stream which had the following error when downloading.
Couldn’t open file /Users/yahav/Pictures/WORK/unity/left01.jpg”
i was trying all sort of file URI formats, but non of them workd
what is the right way to write a correct path to a file calld “R1.jpg” located on “C://image” (c://image/R1.jpg)?
i’m using a windows OS and i tryed both “/” ans "" for that matter, with no change in the result.
thanks
yahav