Zelda style text

I’m trying to figure out how this kind of chat system is setup. I know how to do the auto typing text part but unsure how to send text down to the next row acting as a word wrap similar to notepad. Also having multiple pages of different text dialog, ect. It seems rather simple yet confusing at the same time. Does anyone have some coding examples for this type of text system?

I guess some people haven’t played zelda. Here’s an example of what I’m talking about.

You are probably adding one character at a time to a string, so it shouldn’t be too hard to decide the line length you want and to break it on a space and start over on the next line position.

It wouldn’t be hard to decide the line length but making it so words don’t get cut off is the tricky part. Also dividing long text into pages.

Don’t forget that space is a character that you can search for and compare. There’s nothing at all hard about it, you may just want to brush up on dealing with strings and characters.

Found this in about 30 seconds of searching:

It’s in XNA but all you really need to change is how it’s updated and drawn which in Unity should be a breeze.