Unity UI Elemente richtig anzeigen

,

Hallo zusammen,

ich arbeite nun schon seit einigen Monaten an einer App in 2D. Als ich die App nun auf meinem Android Smartphone testen wollte musste ich feststellen, dass alle UI Elemente(Texte, SPrites(Icons UI )) sehr verschwommen sind.
Was kann ich dagegen tun?

Die Auflösung habe ich auf 720 x 1280 eingestellt. Außerdem habe ich in jeder Scene das Canvas auf “Scale With ScreenSize” eingestellt.

Vielen Dank im Voraus!

If no one has a solution for this then try textmesh pro. Install it in the package manager. Then you will see it in the ui-menu. I think the textmesh-pro scales better. And maybe the sprites have to low resolution. Make them bigger. It is better to downscale an image as upscale it.

1 Like

Please write in English next time, as this is mainly a english-speaking forum :slight_smile:

I’ve translated your post for convenience:

Try out TextMeshPro as @vakabaka suggested. For the icons, use images that are higher in resolution and make sure that the settings for them are correct.

2 Likes

Hello again,
thanks for your fast answers and thanks @Mauri for translating my question.

I’ve tried TextMeshPro right now but I’m not really statisfied with my results("New Text was created with Text Mesh). I imported the font with the best available quality but it’s still blurry. Another issue is that behind every Tet there is a kind of field that’s really blurry(I hope you can see it on the pictures).

Do you have any idea?



is it “in-game” screenshot from the builded app ? Maybe you should then set the resolution to 1080*2160 (the size from the first screenshot)

1 Like

Hey, yes it is an in game Screenshot, but setting the resolution to other values doesn’t change anything in my case:(

I am lost now :eyes: Try to enable “pixel perfect” in the canvas settings, maybe in the canvas scaler “reference pixel per unit” is too low or other font can help (you can download other fonts for the textmesh-pro over “Project Settings - TextMeshPro - Import Examples&Extras”. Ich glaube Du bist an dem Punkt, wo Probieren geht über Studieren :hushed:

1 Like

Hey, I finally fixed the issue. I really don’t know why but my whole app was displayed as JPEG instead of PNG:face_with_spiral_eyes::face_with_spiral_eyes::face_with_spiral_eyes:thanks for your help!

1 Like