x


Editor class "Texture Importer" question (applying settings to multiple texture assets).

Hi, Is there a way to apply settings to multiple texture assets? For example set the mipmap parameters for a selection of textures in a directory?

If you have multiple textures selected, changing settings only affects the first texture.

I have looked into writing an editor script, but the problem I ran into there was the function:

http://unity3d.com/support/documentation/ScriptReference/Selection.html

only returns selections inside of the scene. It will not return a selection of project assets.

Any suggestions for batch applying "texture settings" through the editor or through editor scripts?

more ▼

asked Jan 27 '10 at 04:28 AM

lowbloodsugar gravatar image

lowbloodsugar
433 9 11 16

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

1 answer: sort voted first

Have a look at this script on the wiki.

more ▼

answered Jan 27 '10 at 05:06 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

wow, nice! hadn't seen that before

Jan 27 '10 at 10:22 AM duck ♦♦

Thats exactly what I was looking for. Thanks. This script uses selection function's optional parameter, called "SelectionMode.DeepAssets", that is the real trick for selecting objects in the file folder.

Jan 30 '10 at 12:10 AM lowbloodsugar
(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:

x2199
x1673
x972
x354
x348

asked: Jan 27 '10 at 04:28 AM

Seen: 3909 times

Last Updated: Jan 27 '10 at 04:28 AM