|Topic was automatically imported from the old Question2Answer platform.
Hi, first of all, I am sorry if this is already taken care of in another discussion, but I have searched with no success for the answer to my problem.
I have a label where I insert text via code.
The text comes from an array of strings with each string varying its size.
If the player presses a next button, it replaces the string displayed in the label for another string from the array.
My problem is that the first string is displayed centralized, but, when the next string is of a different, it is displayed a little to the right (not centralized anymore).
And then, if the string after that is smaller, it is not displayed in the center anymore like the first one. Its as if it’s displayed a few inches to the right. So, the position of the strings doesn’t seem to start off from the center of the label. It varies depending on the string that came before it.
How do I fix this? I want to display the strings as the label’s text always starting off from the center and filling the spaces in both directions if its bigger, so that it remains centered.
Hope I could make myself clear.