UI text area

Hello,
I want to make a UI text area for the player to write in and be able to make line breaks.
However, I have no idea how to do that.
I can make UI text, but then the player can’t make line breaks (which is important).
Can anyone help me?

All UI is made inside Canvas, for that there are many tutorials. For the player input use InputField, you have to create it inside Canvas.

  1. Right click in hierarchy → UI → Canvas

  2. Right click on canvas → UI → InputField TextMeshPro OR
    Right click on canvas → UI → Legacy → InputField (uses older unity Text component but easier to support different languages)