9 Slice image gets pixelated

I am using 9 sliced images as button and panel image on my game. For desktop version it looks great. However on mobile the UI needs to get scaled to support high DPI screen and that is when my button and panel looks pixelated. Wherever I am not using 9 sliced images, I can fix this pixelation by providing a higher resolution image and scaling the image down on desktop gui. However for sliced images providing high res image is not possible since that will look way too big on desktop and low dpi devices.

What can I do to solve this issue?

I actually found the solution to this already. All you need to do is make the image 2x in size and then in sprite property select ā€œ200ā€ as value Pixel To Unit.

This has solved my problem.

Iā€™m having the same problem. THe only solution is to have a highres image and scaled down in unity as you said. But that brings a new problem, the scale on this objects with anchors mess up everything.