Search Unity

Texture2D.format changelog

Discussion in '5.3 Beta' started by Zuntatos, Oct 3, 2015.

  1. Zuntatos

    Zuntatos

    Joined:
    Nov 18, 2012
    Posts:
    522
    What does this mean? Texture2D.format now shows ARGB for RGB formatted textures? Or is it actually a fix where this sometimes happened? Claiming there is an alpha channel when there isn't is... bad to say the least, but hopefully it's just a mess-up.
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    192
    This is a fix to the issue described here :
    http://issuetracker.unity3d.com/issues/texture2d-dot-format-shows-argb-on-rgb-texture-format

    Basically the information of Texture format may not be available under certain conditions (like checking format for non-readable textures). In those cases a default value of ARGB is set. Hence even if texture format is RGB, the reported format could default to ARGB. This has been fixed now and the correct format should be available.