- Home /
UI Text Small on screen device.
I am facing a problem when printing an UI Text in my screen... Kind of "Game Over" text at the center of my UI Canvas...
The point is when i test the game on unity editor, it goes right and ok, but it prints very smaller when i build and run in Android device.
I already read all the Posts around here... but nothing has solved the problem.
Does anyone know the real concepts about this problems. i would not to solve only, but to understand the reason..
Thank you so much. I hope some of you has the answers
Answer by Derek-Wong · Feb 03, 2015 at 02:17 AM
Have you set the canvas scaler on your canvas? sound like it is due to some scale problem. Check the resolution in your game screeb and compare it to your android device.
This worked for me. Thanks.
To elaborate, I set the UI Scale $$anonymous$$ode property on the Canvas Scaler component to "Scale With Screen Size" and now the text appears using the intended size.
Thanks man, this worked like a charm. I had to add the Canvas Scaler component and then I modified the resolution to be closer to a phone's (which was much higher than my computer's).
Answer by SnStarr · Feb 03, 2015 at 12:43 AM
Try changing some parameters in the Text component, namely The check box Best Fit, enable it, and give yourself a minimum size. This will make sure the text size shown on any screen resolution will be AT LEAST this amount. That should stop it from appearing way too small. Also make sure to give yourself a maximum size just for practices sake.
Your answer
Follow this Question
Related Questions
Random lines showing up in Text component 1 Answer
Get Position of a specific letter in UI Text containing line breaks 0 Answers
Graphic problem with UI Text 2 Answers
Jumbled text in Unity UI 1 Answer