Hi,
I have Image component on which I dynamically change the sprite (2D and UI) by using:
void UpdateImage(Image image, bool isSelected, Sprite selected, Sprite plain)
{
if (image == null)
return;
image.sprite = isSelected ? selected : plain;
}
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!