x


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?

more ▼

asked Nov 02 '10 at 02:09 AM

amd2002a gravatar image

amd2002a
122 14 16 24

Do you specifically need a material for each texture, or could you modify the texture of a single material on start-up?

Nov 02 '10 at 04:31 AM Herman Tulleken

I need one material per texture.

Nov 02 '10 at 10:00 PM amd2002a
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

As of Unity 3.0 the texture importer is exposed to editor scripts: Texture Importer Documenation

more ▼

answered Nov 02 '10 at 04:02 PM

DocSWAB gravatar image

DocSWAB
358 5 6 16

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

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

more ▼

answered Nov 02 '10 at 06:36 AM

Jean Fabre gravatar image

Jean Fabre
3.1k 68 74 103

(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:

x2194
x1671
x811

asked: Nov 02 '10 at 02:09 AM

Seen: 1098 times

Last Updated: Nov 02 '10 at 02:09 AM