TextArea doesn't work anymore?

I’m trying to make my string input in the inspector have mroe than 1 line, but the TextArea flag doesn’t seem to work. I’m using Unity 2021.3.20f1 LTS.

[TextArea] [SerializeField] private string stepText;

but it stays one-line:

8875194--1212114--upload_2023-3-14_7-23-53.png

NOt sure if this is a Unity Bug or I’m doing something wrong. None of the Text Areas seem to work, even with scripts that’s part of Unity, such as InputField.

Just tested it on my Project, using 2021.3.19f1 LTS version.
For me it does work, seems like a bug in your GUI?
Or there was any change from .19f1 LTS to .20f1 LTS ?

i tested following:

[TextArea] public string description;

and:

[TextArea] [SerializeField] private string description;

both seem to work like a Textarea

1 Like

Try [SerializeField, Multiline] instead.

2 Likes

Just based on the “InstanceID” and “Local Identifier in File” I would assume you switched your inspector into debug mode. In debug mode no custom editor or property drawer would be used. Also the inspector would show even private and internal variables. So you should switch the inspector back to normal mode. You want to avoid the debug mode in most cases and it should only be used temporarily when you really need to debug something.

3 Likes

Oh wow… Lol. I didn’t even notice. This whole time I thought to myself “Unity 2021 is showing me a lot more info, huh?”. That was the issue.

1 Like