x


How to allow user to import image file from drive

How to allow user to import image file from drive

more ▼

asked Jan 10 '10 at 04:44 PM

peter gravatar image

peter
356 33 38 40

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

you can use www function to load files from hard disk. for file system access use "file://path" and for web resources use "http://url" as the string argument of www's constructor. unity can load JPEG and PNG files and for other file types you need to convert them using external libraries that they are available on the net. for file system manipulation and file processing you need to include the http://System.IO namespace in your code. you don't need that for simple image loading with www but you might need it for more advanced stuff.

more ▼

answered Jan 10 '10 at 07:46 PM

Ashkan_gc gravatar image

Ashkan_gc
9.1k 33 56 117

Amazing....thx!

Jan 11 '10 at 01:32 AM peter
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3680
x2196

asked: Jan 10 '10 at 04:44 PM

Seen: 1741 times

Last Updated: Jan 10 '10 at 04:44 PM