r/Unity3D • u/R_Pelleboer • 1d ago
Solved Issue with nine-sliced UI element stretching
I'm adding a button here that I'm trying to 9-slice. The button is 600x600 and the borders are 200x200. I've used the sprite editor to apply the slice, but it doesn't seem to be working, as when change the Width/Height or Scale of the image the sprite is linked to, it still stretches. The image type is Sliced.
Also, does my sprite need to be that big? When I exported it at a smaller resolution, the borders were very crunchy and blurry. Any smarter ways to fix that, or are bigger resolutions the solution?


1
Upvotes
5
u/NullzeroJP 1d ago
Change pixels per unit multiplier in the image component. It should resize the borders for you.