I’m trying to make a dialog system for my game, but the text boxes in the inspector for editing strings are so small, writing lines becomes fairly obnoxious. I’ve seen large text boxes in the inspector. How can I make them bigger?
It would be good if those sprite variables could be a large square like when you’re making a material, too.
Thanks for your help guys.
Not sure if this has been changed at some point, but this is what worked for me:
[TextArea(15,20)]
public string Description = "";
source: Unity - Scripting API: TextAreaAttribute
Why making it so complicated people ?
Add this above your string variable
//TextAreaAttribute(int minLines, int maxLines);
@TextAreaAttribute(15,20)
this will make your box bigger in inspector because you put minimum lines before enlarging the box 15
and the box will enlarge till 20 lines then a scrollbar will be shown.
read here TextAreaAttribute
If you are using your own scripts, you can use a custom inspector.
You can then use Multiline:
If you are using default UGUI, then I’m not so sure.
However, if you are making a dialog system, why are you typing in the inspector in the first place?
I would recommend you to have all the dialog typed up in a text file like a text asset.
Then once you finished your dialog system, you can just edit the text file anytime you want. This also makes localization much easier.