Is ScrollView what I need?

I’m trying to create a chat-like window that stores system messages so, if the player misses one, he can scroll back through to see past messages.

I thought scrollview was the way to go, but… I got scroll view working well enough, and I was trying to use a series of textAreas (one for each message, and message will sometimes require m ultiple lines) for stored messages. The basic functionality is mean to be, when a system message is generated, all previously stored messages shift up in the scrollView to make room for the new message, which is to be displayed at the bottom.

The problem is, using textArea, a background is included in the textArea that overlays on my scrollView backGround. I just want text, and nothing else with teh messages. So then I tried using a label, but that results in the scrollView being overdrawn completely (not sure why, as my labels are only as big as the text and shouldn’t be blocking much at all).

Do I have to create my own set of controls to create a chat window?

The Labels are definitely the way to go, since presumably you don’t want people to edit the messages after they’ve come in.

So in that case, it sounds like your issues are more about the styles (content) than the code. Check out GUIStyle in the scripting reference. Specifically, you’ll want a style that has wordWrap=true, and no background textures set so the text just draws over whatever is underneath transparently.

I hope that helps.