Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

WhiteSpace

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.