[HOWTO] How To: Customize Scrolling Dialogue UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] How To: Customize Scrolling Dialogue UI

Post by Tony Li »

This article contains tips on customizing the Scrolling Dialogue UI.

To control the typing speed of a dialogue UI's subtitle text, inspect the Subtitle Text GameObject. The basic Scrolling Dialogue UI prefab uses Unity UI Text, so it has a UnityUITypewriterEffect component. Increase its Characters Per Second:

scrollingTmp1.png
scrollingTmp1.png (59.16 KiB) Viewed 192 times

However, I recommend enabling TextMesh Pro Support. Then replace the Subtitle Text GameObject with a TextMeshProUGUI version, and add a TextMeshProTypewriterEffect:

scrollingTmp2.png
scrollingTmp2.png (101.04 KiB) Viewed 192 times

Also configure Auto Scroll Settings, which I also highlighted above.

Remember to assign it to the Subtitle Panel Info's StandardUISubtitlePanel component:

scrollingTmp3.png
scrollingTmp3.png (62.25 KiB) Viewed 192 times

If you only want to show the NPC's portrait, tick the Subtitle Panel Info GameObject's Only Show NPC Portrait checkbox, and unassign these two fields on the response menu:

scrollingNoPC.png
scrollingNoPC.png (73.67 KiB) Viewed 160 times

Finally, if you want to indent lines, please see: How To: Prepend actor name and indent in TextMesh Pro

And if you want to color subtitle text or actor names, see: How To: Color Actor Name and Indent Text
Post Reply