Text editing in inspector

I know it’s possible to have a text “field” be displayed in the inspector through:

var poo : String;

But is there a way to have a text “area” be displayed in the inspector so I can write whole stories (with paragraphs) for the GUI?

Or am I crazy? :smile:

Yes, you’re crazy. :wink: Even if you had text areas in Unity, wouldn’t you be more comfortable writing lots of text in a real text editor? Then you can use TextAssets in Unity–that’s what they’re for. You could even copy&paste into the existing text fields, but TextAssets would be less cumbersome. You can actually write paragraphs in the text fields, using option-return for returns (and option-tab for tabs), but that’s fairly ridiculous for anything more than a couple of lines.

–Eric

You again… :evil:

Lol. Thanks for the tip. Didn’t realize you could use text files in Unity. Makes my life one step easier in the game world. They sure did think of pretty much everything didn’t they? :smile:

You cannot escape me.

Well, no, they still haven’t put in the “make my game” button, even though we’ve been asking for it since like version 1.0.

–Eric

And if you really want to go wild with structured text input, you might look into what Mono can do with parsing XML as your text source. (Full disclosure: haven’t done this myself, but I am a big fan of the power of XML in general).