- Home /
Image renderer stretching sliced images
I use an Image component which stretches a 9-sliced sprite.
Answer by CoryButler · May 17, 2019 at 02:20 PM
Vertical squishing occurs when the image's RectTransform height is less than half of the sprite height. Your sprite is very large, 2048×2048 for a very low-detail image. You could probably get away with a 64×64 or even a 32×32 sprite. Just check the image's RectTransform height in the Inspector and make your sprite double that number. Remember Unity likes sprites with a width and height that are a power of 2: 8, 16, 32, 64, etc.
Your answer
![](https://koobas.hobune.stream/wayback/20220612201534im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Picture loaded from resource corrupted. 0 Answers
Animating a Sprite Image in UI from Code 1 Answer
Sprite.Create() only works the first time and eventually causes "Invalid AABB" errors. 2 Answers
Circular 9 slice? Draw a circle with constant thickness 1 Answer
Change UI GUI Image Sprite at runtime .. Unity 5 .. js 1 Answer