Hello. This is my first post on the forums here so don’t yell at me if this is in the wrong place.
I am working on an extension to Tom’s Terrain Tools and I am getting “Out of memory” errors because I am using quite a few large Textures as vegetation-maps. Now, the problem seems to be that, in order for my Script to be able to GetPixels() from the textures they need to be in RGB24 or ARGB32 format. Since the Unity editor thinks I need these Textures for my game they are stored in my crappy video card’s RAM and I quickly run out of memory.
I presume I wouldn’t have this problem if I loaded the files from within the script, because they wouldn’t need to be stored on the video card as Textures and could be dumped from memory after I generated the vegetation. I figure it would solve my “Out of memory” problems…
I was wondering if there was a way of adding a public variable to my class which would allow me to use my OS’ file browser to select the files I want to open from within the script. I could just make a String variable with the path to the file, but that’s a pain.
Anybody know if it’s possible to get the file browser to work with ScriptableWizard scripts?