Page 1 of 1
How to make dialogue last longer
Posted: Wed Nov 25, 2020 9:42 am
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?
Re: How to make dialogue last longer
Posted: Wed Nov 25, 2020 11:12 am
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 (45.41 KiB) Viewed 114 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 (2.76 KiB) Viewed 114 times
To read more about sequences, see:
-
Cutscene Sequences Tutorial Series
-
Cutscene Sequences