What is the difference between "Single Line" and "Multi Line Submit" in unity text mesh pro? Both of them call OnEndEdit Event when pressing Enter keyboard button.
It is basically an extension of the UI.InputField
so I would expect the same behavior as for a normal input field where you can find the option as UI.InputField.LineType
SingleLine
Only allows 1 line to be entered. Has horizontal scrolling and no word wrap. Pressing enter will submit theInputField
.
MultiLineSubmit
Is a multilineInputField
with vertical scrolling and overflow. Pressing the return key will submit.
MultiLineNewline
Is a multilineInputField
with vertical scrolling and overflow. Pressing the return key will insert a new line character.
here someone implemented a script to be able to type new lines using Shift+Enter when using the MultiLineSubmit
option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With