Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

WhiteSpace

enumeration

Description

Controls how white space and line breaks within an element's text are handled.

Properties

Normal Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is the default behavior.
NoWrap Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line.
Pre Whitespace is preserved. Text will only wrap on line breaks.
PreWrap Whitespace is preserved. Text will wrap when necessary.