Unity 5.0.2 UI Text - Best Fit isn't working correctly?
So I'm making a menu in Unity that is supposed to support multiple resolutions. My buttons scale, but the text inside them does not.
I've experimented with anchor points, but I've been told that the "Best Fit" option is the best way to go for text scaling. However, while the text does become bigger, it doesn't scale dynamically according to screen size, which is what I want. So if the screen becomes smaller, the text should get smaller with it, which isn't happening.
Anyone know why this is happening? Is Best Fit not what I should be using?
I guess with Unity 5.4 this is happening again, and solution provided below doesn't work. I've reported a Bug.
NOTE: It just happens with "Non Dynamic" Fonts (Option in the Font export), I don't know if has to be this way or not.
Answer by Phedg1 · Feb 17, 2016 at 12:24 PM
If you put the anchors (white triangles) into the corners of your text object, then the text container will resize dynamically with the screen. This, in combination with best fit, will create the effect you described.
Your answer
Follow this Question
Related Questions
Unity 5 - Does anyone know how to scale the text in the UI? 1 Answer
How can I check if there is no free space in the Text component? 1 Answer
One textUI and two colliders that update it 0 Answers
how to display UI text in every scene with same text inside?? 0 Answers
How to make text appear when button is highlighted with a controller? 0 Answers