- Home /
UI text not centering when scaling
I'm trying to get my UI to scale properly, but for some reason the text keeps randomly snapping to the top of the field at random times. What's causing this?
Answer by digzou · Apr 20, 2015 at 07:57 AM
First make sure your Text component is a child of the button. And then check whether you havent pressed return [Enter] after you have typed "Tier 1" in your case.
Change the alignment to Middle Center.
Hope this solves it.
Answer by HyperNovaDev · Nov 12, 2021 at 02:03 AM
Something I found while messing around is that if you click on the text in the hierarchy, and click on extra settings, change the margins so they are all even, or accordingly.
These values were all strange decimal numbers for me. I hope this helps!
Your answer
Follow this Question
Related Questions
Unity Script help for on/off switch code. 1 Answer
How to make UI buttons so my player can move along certain lines 0 Answers
how to chick weather the button is pressed or held down 1 Answer
I need to move a sprite when an UI button is clicked 1 Answer
Trying to manage an Animation. AnimationState.time doesn't adjust the animation 1 Answer