InputField does not allow wrapping for TextComponent? (V2.0.1)

I use a TMP_InputField with a Placeholder and a TextComponent. The latter displays the text typed in. I configure this TextComponent (a TextMeshProUGUI) with Wrapping enabled, but whenever I save the scene in the editor it gets set back to “disabled”. Hence, I can not enter multiple line Input at runtime.

Any way to change that? Any reason why it should be that way?

Thanks a lot,

Holger

If you want to be able to input multiple lines at runtime, you should edit the InputField itself, not its child text. Take a look at Content Type and Line Type on the InputField.

2 Likes

Thanks a lot!