TLDR = Where do I put TextArea when working with List instead of just public string?
So I am creating a dialogue system that uses List. I’m also new to coding…
Typing the dialogue in the inspector is really annoying because I can only see one line…even if the dialogue box contains more text.
I have heard of TextAreaAttribute which works by declaring before the variable like this:
[TextArea]
public string MyTextArea;
I tried putting [TextArea(int, int)] before declaring the List but it didn’t work. Where do I put TextArea when working with List instead of just public string?
EDIT: I’m dumb!
I passed in a string array using a different script. Putting [TextArea] before declaring the string array did the trick! Solution:
[TextArea(int, int)]
public string[ ] youSolvedItBuddy;