From Unify Community Wiki
Revision as of 20:53, 7 April 2014 by Diego Floor (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Thanks for sharing this, though you don't actually need to do this to get a new line in any text field in Unity, including the TextMesh component. Just press ALT+ENTER and then type away; boom new line! Also, if setting string from code, simply use the escape code for new line "\n" in the string itself; "Hi there,\nThis sentence is on a new line.". Click here for visual example --Joe @ ByDesign Games (talk) 07:49, 25 March 2014 (CET)

Hi Joe! This is very odd, a lot of people seem to be able to create new lines with shift+enter but that doesn't work for me and some other people. I don't know why, shift+enter works on other software and websites. So I still use this script when I don't want to set the string through script using \n. If anyone figures out how to make shift+enter work on every computer this script can be put to rest :) --Diego Floor (talk) 22:53, 7 April 2014 (CEST)

Personal tools