Hello, the sizeDelta get broken when you assign a sprite to an image componant by using a script.
Video :
Case : 1146867
Thank you.
Hello, the sizeDelta get broken when you assign a sprite to an image componant by using a script.
Video :
Case : 1146867
Thank you.
Tracker for similar issue : Unity Issue Tracker - UI Image does not scale together with RectTransform when using RectTransform.sizeDelta and Sprite is changed via Script
Cross posting my similar issue with changing color after assigning a sprite from script In 2019.1, changes to Image.color are not displayed after changing its sprite via C# - Unity Engine - Unity Discussions
Same problem here when changing the sprite and/or the color. Moreover when a shadow component is used, only the shadow is displayed after changing the sprite.
Same issue. Just upgraded and this broke large swaths of my UI. Is there anywhere to see when a patch will be released to fix it?
Here’s a video of our bug repro project. Pretty much the same setup as the OP, just corroborating the repro.
UnfitAlarmingGartersnake
Same here