- Home /
Question by
K1kk0z90_Unity · Oct 05, 2015 at 03:14 PM ·
uitextalignment
How do I place a left or right aligned Text where it would be if it was center aligned?
How do I programmatically change the position of a left or right aligned UnityEngine.UI.Text to place it where it would be if it was center aligned? I need to do it without changing the Text.alignment property. Thank you in advance.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612040124im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UI Text.LineSpacing doesn't work when the Text has only one line ? 1 Answer
UI Text Not being centered 3 Answers
how to align 2 different text together with scoring 1 Answer
How to align text? 1 Answer
Planning Text Scroll with Unity UI 0 Answers