Topic was automatically imported from the old Question2Answer platform.
Asked By
rz
So I have a Popup menu and I have a label in it, I want the label to display stats like:
Wins: 5
Losses: 8
Ties: 3
Where each stat is on a new line, in a single label. Some languages such as C has a feature where you add in \n in string to go to a new line. How do I do this in GDScript? I’m editing the text from a script.
I’ve just had a similar problem. I’ve written to a txt file (as a test), and checked the result from the standard windows txt-editor. The newline character is there, just the txt-editor did not want to show me, and wrote the whole thing in one line.