PDA

View Full Version : Newline in text object


SuperRune
01-11-2011, 11:16 AM
I couldn't find this in the search, but I hope it's an easy thing to solve. I'm creating a text object, and I want to have a newline in the text string. Doing this...

myText.text = "New\nLine"

...does not work for some reason. Anybody know what would work?

Gravey
01-11-2011, 11:30 AM
you need to use: \r\n

SuperRune
01-11-2011, 11:41 AM
Ahhhh... Thanks!!

CGTalk Moderation
01-11-2011, 11:41 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.