Line Types

The Line Type option is available with the Standard, Autocorrect, and Custom options for Content Type. There are three Line Type options: Single Line, Multi Line Submit, and Multi Line New Line. All other Content Types are automatically restricted to Single Line types. If the player is allowed to enter more text than the Input Field's visible area can display (meaning the Character Limit property does not restrict it to the visible space), the text will scroll based on the Line Type selected.

The Single Line option only allows the entered text to be displayed on one line. If the text exceeds the visible horizontal space, the text will scroll horizontally. If the player hits the Enter key, the Input Field acts as if the text has ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.