I've started to set up UI in my game and suddenly hit a problem. Below is a full explanation.
For example i have this sprite:
View attachment 192607
And i need to made it bigger or smaller horizontally or\and vertically without stretching, just like this:
View attachment 192610
So, if 9-sliced grid is this:
View attachment 192611
then my slicing looks like this:
View attachment 192613
With such a slicing, i get what i need except 2 cases - when RectTransform height...
9-spliced sprite not working as I need
For example i have this sprite:
View attachment 192607
And i need to made it bigger or smaller horizontally or\and vertically without stretching, just like this:
View attachment 192610
So, if 9-sliced grid is this:
View attachment 192611
then my slicing looks like this:
View attachment 192613
With such a slicing, i get what i need except 2 cases - when RectTransform height...
9-spliced sprite not working as I need