How to make dialogue last longer

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jeez
Posts: 1
Joined: Wed Nov 25, 2020 9:37 am

How to make dialogue last longer

Post by jeez »

Hi,

I'm using Standard Dialogue UI and I am trying to find a solution for keeping the NPC dialogue line last longer. I was hoping that decreasing typewriter character's amount per second would solve it but it does not. The question is:

Where do I find a variable which would make NPC dialogue line last longer and why is it that HARD to find?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make dialogue last longer

Post by Tony Li »

Hi,

Subtitle times don't have anything to do with Lua or variables. To make all subtitles take longer, inspect the Dialogue Manager GameObject. Reduce Display Settings > Subtitle Settings > Subtitle Chars Per Second. For example, if your text is 120 characters long as Subtitle Chars Per Second is 30, then the subtitle will last 4 seconds (120 / 30 = 4). If you reduce Subtitle Chars Per Second to 20, then the subtitle will last 6 seconds (120 / 20 = 6):

subtitleCharsPerSecond.png
subtitleCharsPerSecond.png (45.41 KiB) Viewed 115 times

Note that the typewriter speed is independent of this. If you want the typewriter to last the same duration, set the typewriter effect's Character Per Second to the same value as Subtitle Chars Per Second. (The typewriter effect is on the subtitle panel's Subtitle Text element in the dialogue UI.)

If you only want a specific subtitle to last longer, inspect the dialogue entry node in the Dialogue Editor. Set the Sequence field to a delay value, such as Delay(5) to delay for 5 seconds:

delay5.png
delay5.png (2.76 KiB) Viewed 115 times

To read more about sequences, see:

- Cutscene Sequences Tutorial Series
- Cutscene Sequences
Post Reply