Search Unity

Sprint reset on Image not working in latest release (including beta)

Discussion in 'UGUI & TextMesh Pro' started by EusebiuMarcu, Apr 30, 2019.

  1. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    Hi,
    I have Image component on which I dynamically change the sprite (2D and UI) by using:
    Code (CSharp):
    1.  
    2.         void UpdateImage(Image image, bool isSelected, Sprite selected, Sprite plain)
    3.         {
    4.             if (image == null)
    5.                 return;
    6.  
    7.            image.sprite = isSelected ? selected : plain;
    8.         }
    The code works perfect on 2018.3.12f1 but not working on the latest 2019 (including beta) => i.e. the image background is drawn correct but the white part is not). Downgrading to 2018.3.12f1, removes the issue.
    (see image here = https://drive.google.com/open?id=1PPy0QJHho2EF6w2VmpnRlW8suHinePUh )

    Any ideas why this happens?
    Thanks!
     
    Last edited: Aug 5, 2019
  2. EusebiuMarcu

    EusebiuMarcu

    Joined:
    Sep 20, 2018
    Posts:
    26
    Fixed in latest 2019 release.
     
    Last edited: Aug 5, 2019