Question by
Tino895 · Jul 31, 2016 at 05:48 PM ·
buttonassetscustom editorimporting assets
Import images from disk throught custom editor script.
Hi!
I'm making a custom editor script and i want to create a button that when you click on it, you can import a image from disk to assets folder (like when you click on "Import new asset" and a window pops up with your disk files and you can select a file to import it to assets folder, but i cannot find how to do that. Any idea? And restrict the selection to only jpg and png formats.
Thanks!
Comment