- Home /
What is the easiest way to import a large number of images into Unity?
I need to import over 100 small images into Unity. I'm planning to create one material per image. Does anyone know of an easy way to accomplish this without having to manually do it in the editor? Can this be scripted?
Do you specifically need a material for each texture, or could you modify the texture of a single material on start-up?
Answer by DocSWAB · Nov 02, 2010 at 04:02 PM
As of Unity 3.0 the texture importer is exposed to editor scripts: Texture Importer Documenation
Answer by Jean-Fabre · Nov 02, 2010 at 06:36 AM
Hi,
Good question/request, I tried to find some import wizards as well for batch importing, but haven't yet, The problem I fear is that the editor options of the "texture importer" are not exposed to the scripting api, things like "texture type", "non power of two", "read/write enabled",
All this I think is not accessible via script.maybe it is tho, then I missed it and would love to learn about it.
Bye,
Jean