- Home /
No-Break/Non-Breaking Space in Strings
Hey guys,
What is the syntax/character code for a no-break/non-breaking space for strings in UnityScript? I need one of these bad boys in order to clear up some right-justified string alignment issues.
A no-break space is simply a blank space that isn't trimmed by the usual trimming functions in most languages.
Thanks!
Answer by SergeantBiscuits · Jul 30, 2013 at 09:56 AM
Solved my own problem... again.
\u00A0
generates a non-breaking whitespace. Woo!
Answer by tdemachy · Jul 16, 2019 at 06:28 AM
On Windows, in most editors - including notepad - use Alt + character decimal unicode. That is 0160 for non-breaking text. So Alt+0160 will do the trick .. but not in the inspector field of the Unity Text. You will need to copy / paste from an editor.
Answer by Free286 · Jul 06, 2016 at 02:24 PM
On Macs, type "alt-space".
--Eric (copied from unity forum)
Your answer
![](https://koobas.hobune.stream/wayback/20220613111158im_/https://answers.unity.com/themes/thub/images/avi.jpg)