- Home /
How to I scale UI 9-slicing across different resolutions?
I'm trying to make a UI that scales to different resolutions, and it's been working out so far. However, I'm having trouble making the 9-slice scaling work properly.
On the left I have a simple GUI box on a low resolution screen, and on the right I have the same thing on a high resolution screen.
The box is sliced like this:
What I'm trying to get is the boxes to look about the same on high resolution displays as they do on low.
Great question. Seems like the way Unity does it kinda defeats the whole purpose of 9-slicing as it doesn't work at different scales.
Answer by NeiratAhmad · Dec 16, 2017 at 09:32 PM
You can simply change the pixels per unit for the sprites file
Answer by u-i · May 09, 2016 at 10:09 PM
Same problem here, the only ""solution"" i have found is changing the SCALE to the image and then resize it to the size i want. The problem with this is that you can't spect to works smooth, since you are having different resolutions.
If anyone find the solution let us know :D
Your answer
Follow this Question
Related Questions
Objects move when changing resolution 2 Answers
2d image does not scale/stretch correctly 2 Answers
Strange Canvas behaviour at Screen Space - Camera mode? 0 Answers
Button position scaling weird 1 Answer
Aligning UI Elements in Code 0 Answers