Centered text

Im sorry if this question is trivial, but i havent been able to find a way to center text on the screen as there is no method that i know of to measure the text length, if such a method exists please lmk!

“Center text on the screen”

How are you adding the text to the screen?

The answer depends on the context of what you are doing and I don’t have time (at the moment) to answer all of the possibilities.

Edit: for example, is this just a single Label you are throwing on screen and want to center it once? Or is it something that will be updated over time and should stay centered? Will it eventually be part of more UI elements or is it always just going to be a single label sitting there?

If you can provide some information about what it’s for/why you are doing it then I can provide the best answer.

“Yes” it’s a “simple thing”… but there is more than one simple way.

1 Like