How do I print a format string to a string or Text component?

I want to use format specifiers (or at least be able to tell my game to print a kind of number).

How can I do this? I don’t want it printed to the console but instead a String object instead so that I can just give it to my UI Text component.

Do you mean using string.Format?

1 Like