I want to creat a window,in which i can selecte an image from my disk and load it to the running app.It will work only on a PC platform.
I’m not good at programing, so I need some help!
Hi, welcome to the forum!
You can load an image from a file using the WWW class with a file:// URL (see the script reference page for a code example). Once you have loaded the image data, you can place it into a texture using the LoadImageIntoTexture function.
Thanks for your reply!
I wonder how can I transform a text into a file ://URL? In fact I need a window like our OS’s exlporer to location the file. : b
Eric5h5 has a file browser on the asset store. If you want to roll your own check out the classes in System.IO
Thanks KelsoMRK, where can I find the file browser in the asset store? Can you send me the url? Thank you!