Page 1 of 1

Typewriter (TMP) only occurs on the first node

Posted: Mon Apr 19, 2021 2:32 am
by olakehs
Sorry bit of a newbie on Dialogue System (and Unity for that matter)... but for some reason Typewriter for TMP only seems to run for the first node, and any subsequent node it doesn't typewrite. I've just added the TextMesh Pro Typewriter Effect component and have not adjusted any of the settings

Thanks in advance for any assistance
O

Re: Typewriter (TMP) only occurs on the first node

Posted: Mon Apr 19, 2021 4:48 am
by olakehs
OK I think I resolved it

In case others may come across this issue: I needed to set the 'Subtitles Chars Per Second' found under the Dialogue System Controller, to something higher than the TextMesh Pro Typewriter Effect component's 'Characters per Second'

Re: Typewriter (TMP) only occurs on the first node

Posted: Mon Apr 19, 2021 8:47 am
by Tony Li
Hi,

I'm assuming you already set up your dialogue UI with TextMesh Pro. (See: TextMesh Pro Support)

The Dialogue Manager's Display Settings > Subtitle Settings > Subtitle Chars Per Second should probably be equal to or less than the TextMesh Pro Typewriter Effect's Characters Per Second.

This is because, unless you've changed Camera & Cutscene Settings > Default Sequence, Subtitle Settings > Subtitle Chars Per Second determines how long the conversation shows a subtitle before progressing the conversation. For example, if your text is 150 characters and Subtitle Chars Per Second is 30, then the subtitle will stay onscreen for 150 / 30 = 5 seconds.

If the typewriter effect's Characters Per Second is 50, then it will finish typing out the characters after 150 / 50 = 3 seconds.

If you reduced the typewriter effect's Characters Per Second 15 to, then it would take 150 / 15 = 10 seconds to type, meaning it wouldn't finish typing before the conversation moved on. So make sure the typewriter's Characters Per Seconds is no less than the Dialogue Manager's Subtitle Chars Per Second.

However, regardless of these values, whenever the conversation progresses to another subtitle, it should reset the typewriter effect and type out the new subtitle properly. It sounds like you have it working, so I'm just providing this as background info. If you notice any issues, just let me know.

Re: Typewriter (TMP) only occurs on the first node

Posted: Mon Apr 19, 2021 6:30 pm
by olakehs
Awesome, thanks for clarifying Tony. Really enjoying using Dialogue System

Re: Typewriter (TMP) only occurs on the first node

Posted: Mon Apr 19, 2021 6:46 pm
by Tony Li
Thanks! Glad to help.