Typewriter (TMP) only occurs on the first node

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
olakehs
Posts: 7
Joined: Mon Apr 19, 2021 2:28 am

Typewriter (TMP) only occurs on the first node

Post 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
olakehs
Posts: 7
Joined: Mon Apr 19, 2021 2:28 am

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

Post 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'
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
olakehs
Posts: 7
Joined: Mon Apr 19, 2021 2:28 am

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

Post by olakehs »

Awesome, thanks for clarifying Tony. Really enjoying using Dialogue System
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Thanks! Glad to help.
Post Reply