How to apply import settings to all textures?
Asked Answered
H

4

0

Hi, I’ve just updated to Unity 3.5.1. Read that they fixed the image compression. So I now have to check the override for iPhone box and set the compression quality to best. At the moment I have to do this for every texture. Is there a way to apply the settings to ALL of the textures?

Thanks very much.

Humiliating answered 12/9, 2023 at 11:32 Comment(0)
F
0

Shift click all of the textures you want to change and then change the settings for all of the textures at the same time.

Fibre answered 6/6, 2023 at 1:16 Comment(2)

Omg, can't believe there was this feature. I thought I tried selecting them all before but I guess it came with an update or something. Thanks very much, this helped a lot.

Humiliating

It's included since 3.5.

Magbie
F
0

I need to do the same thing. I haven’t looked at it much, but maybe this script can help? It’s probably pretty old, so it may not have all of the settings you need, but maybe you or someone can modify it if you need to.

http://www.unifycommunity.com/wiki/index.php?title=TextureImportSettings

Fibre answered 19/5, 2012 at 4:7 Comment(0)
E
0

You can try something like that and reimport everything :

using UnityEditor;
using UnityEngine;

public class ChangeImportSettings : AssetPostprocessor
{
    void OnPostprocessTexture (Texture2D texture) 
	{
		if( assetPath.Contains("Something") ){
	        TextureImporter textureImporter = assetImporter as TextureImporter;
            // Do your thing
		}
    }
}
Exactitude answered 19/5, 2012 at 4:42 Comment(0)
F
0

Shift click all of the textures you want to change and then change the settings for all of the textures at the same time.

Fibre answered 6/6, 2023 at 1:16 Comment(2)

Omg, can't believe there was this feature. I thought I tried selecting them all before but I guess it came with an update or something. Thanks very much, this helped a lot.

Humiliating

It's included since 3.5.

Magbie
P
0

In your project tab, search for t:texture2d, and then select all of them. You might get a “narrow selection” thingy in the inspector. Just click the one which has regular Texture2D’s. Now you can change the default setting for all of your textures.

It would be very useful if this was a project setting, but here we are. I’m on Unity 2022.3.

Palladin answered 12/9, 2023 at 11:33 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.