Implementing a chat UI with NGUI scrollView

So, what I was trying to do earlier today was to implement a chat window with Unity and NGUI that follows the standard UX of a chat app, which means it shows messages in a top-down order within the message field and once the messages go off the viewport, it automatically scrolls to the end of the list.

At first I thought this should be as simple as few clicks in the editor, however, it turned out to be tricky and require customizing the NGUI scrollView script.

Continue reading “Implementing a chat UI with NGUI scrollView”