(Case 1240367) Changing TextureImporter.textureType resets TextureImporter.mipmapEnabled silently

Hi. I found that the issue about changing TextureImporter’s property.

As a title said, when I change textureType property, it silently reset mipmapEnabled property too. This behaviour is clearly not described in official documentation. I can’t sure this is bug or intended behaviour. But it is clearly annoying and changing a single property should not affect to other properties.

Reproducible project is sent as Case 1240367.

I received response from Unity. It is “By Design” behaviour.

You should manage all of existing properties of TextureImporter and carefully integrate the order of multiple AssetPostProcessors.

From the devs:

“Most TextureTypes have a set of default values. By design they are set when changing the type.
It prevents some unsupported or incorrect values (for example, a NormalMap texture should never have sRGB = true)”.

We’ve forwarded your request to make this information more transparent.

1 Like