Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    1,032
    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:
    1,032
    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,143
    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.