The ‘string question’ Serilazefield variable does not seem to limit the number of lines in the Unity Editor when using the [TextArea(2,6)] meta tag. The text area is created in the Editor but when more than 6 text lines are added a vertical scroll bar is added to the text area field and you can keep adding more text lines.
Blockquote
[TextArea(2,6)]
[SerializeField] string question = “Enter new question text here”;
I am using Unity 2021.3.29f1