- Home /
Image on UI doesn't stretch when objects it's on is stretched.
I have a dialog system in my game with the image element for character faces and I change the sprite depenting on who talks. I wanted to do some effects on it, for example when someone gets angry their shouting face get bigger and sticks out of the dialog box for cool effect. So I tried increasing the size of the image to stretch it, but it doesn't. Image has constant size all the time no matter what the size of the object it's on is. Funny part is that if I change the face manually from inspector while in game it fixes itself, and starts scaling properly, but as soon as the face changes again from script while going to next dialog sentence it breaks again going back to it's 128x128 res, while the object is like 200x200 on hight and width.
That really seems to me like a bug, has anyone encountered something like that and knows the fix? Thanks. I'm using version 2019.1