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?

Have a look at this script on the wiki.

Since I have don’t have enough reputation to post a comment on Eric5h5’s answer, I have to post this as an answer instead.

Here is a mirror for the link in his answer since people have requested it: http://wiki.unity3d.com/index.php?title=TextureImportSettings

This is the method which fetches the currently selected textures:

static Object[] GetSelectedTextures()
{
    return Selection.GetFiltered(typeof(Texture2D), SelectionMode.DeepAssets);
}