Creating a fancy textbox

I’m making a “menu” with Unity, and I’m looking to display a textbox with some text in it (Say, two or three paragraphs). Think on the Deus Ex text boxes or the Baldur’s Gate dialogue boxes. Scroll is optional (As the information I want to add on it should fit the original “frame”), but it would be an interesting add-on.

Giving I’m kind of a newb in Unity, I’ve only come out with a solution using a GUITexture together with a GUIText: The Texture “behind” the text, so it appears as everything is one single object, but I’m finding not very intuitive having to “manually” measure the size of the text and then adapt the GUITexture to it.

So, the question is: There is any (free) and “direct” way to make a fancy textbox in Unity, or should I just code it myself?

Unity offers a “ScrollView” (Unity - Scripting API: GUI.BeginScrollView) as part of its built-in GUI-arsenal. Bascially what you need is

` void OnGUI () {

	// Begin the ScrollView
	scrollViewVector = GUI.BeginScrollView (new Rect (25, 25, 100, 100), scrollViewVector, new Rect (0, 0, 400, 400));

	// Put something inside the ScrollView
	innerText = GUI.TextArea (new Rect (0, 0, 400, 400), innerText);

	// End the ScrollView
	GUI.EndScrollView();
}

`

Have a look at the other GUI possibilities at Unity - Manual: Immediate Mode GUI (IMGUI)