Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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

Discussion in '2020.1 Beta' started by Kichang-Kim, Apr 22, 2020.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    979
    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.
     
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    979
    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.
     
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    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.
     
    Kichang-Kim likes this.