- Home /
Question by
Gentrit Gojani · Feb 17, 2015 at 01:31 PM ·
rectangleround
9 sliced Sprites
Which is the best way to create resizable sprite? I have a png
and I need it in different sizes also I need to keep the corners.
Can I create resizable shapes instead of using png?
pengesa-u.png
(19.0 kB)
Comment
Answer by hexagonius · Feb 17, 2015 at 01:39 PM
If you use it for a UI, you can use Unity's UI Image, which supports 9 sliced Images by default (UI Image). You could also slice it yourself and scale all the border parts yourself, writing a script that stretches the images between corners and center.
Answer by Noob_Vulcan · Aug 29, 2015 at 06:39 AM
You can refer this blog for 9 slice image http://www.unityrealm.com/unity-9-slice-advantages/
Your answer
![](https://koobas.hobune.stream/wayback/20220613183554im_/https://answers.unity.com/themes/thub/images/avi.jpg)