- Home /
UI Image tries to 'fit' source image ignoring transparent pixels and stretches it
I have a square image on my UI that I change from script but when I assing an image to it that has any transparency on the sides It ignores it and tries to 'fit' the image, stretching it weirdly until it 'meets present' pixels. Note that It only happens in runtime (in the editor everything looks normal). Also when I assing an image first time it looks fine but after assining second time it starts stretching. Really seems to me like a bug. There is no problems with resolutions for sure, UI size is constant 128x128 as well as all the images. Any idea what's going on?
Your answer
Follow this Question
Related Questions
How do I add a "pointer" to my UI menu? 1 Answer
Difficulties with world space canvas interaction 1 Answer
UI - clamp the movement of a panel 0 Answers
2D Collider/Trigger on Canvas 2 Answers
Display loaded UI Image in Container with native size 0 Answers