Typewriter Speed

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nitrox32
Posts: 68
Joined: Sat Dec 01, 2018 10:41 am

Typewriter Speed

Post by nitrox32 »

I'm looking for the Typewriter UI component to change the type speed but I can seem to find it. Where is it?
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Typewriter Speed

Post by Tony Li »

It's on the same GameObject as the UI Text element (or TextMeshProUGUI element if you're using TextMesh Pro).

If you've assigned a prefab to your Dialogue Manager's Dialogue UI field, then it's on the prefab. You may find it easiest to add an instance of the prefab to your Dialogue Manager's Canvas, and assign that instance to the Dialogue UI field. This way you can edit the dialogue UI in the Hierarchy. Expand the dialogue UI -> dialogue panel > subtitle panel, and look for the subtitle text GameObject. It should have the typewriter effect, too. Change its Characters Per Second value.
nitrox32
Posts: 68
Joined: Sat Dec 01, 2018 10:41 am

Re: Typewriter Speed

Post by nitrox32 »

OK, I added the typewriter effect to Dialogue->Main Panel->Scroll Rect->Scroll Content->Subtitle Text. I've actually added a Typewriter effect to ever place I can find a Text script. The Alert text, Conversant name and Actors name are all moving slower. I can't seem to get the Converant's message to go slower. Where is that located? BTW I am using the Rune Standard Dialogue UI.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Typewriter Speed

Post by Tony Li »

Hi,

That's the one. The Runic Standard Dialogue UI uses only one subtitle panel, which it shares for the NPC and PC to allow it to accumulate everyone's lines. You can set its typewriter speed here, as you already did:
runicSubtitle.png
runicSubtitle.png (50.41 KiB) Viewed 1770 times
Can you describe what you mean that it's not typing slower? Is the actual animated typing of characters not changing? Or is it the overall timed delay of the NPC's lines?
nitrox32
Posts: 68
Joined: Sat Dec 01, 2018 10:41 am

Re: Typewriter Speed

Post by nitrox32 »

I found the Subtitle Text and reduced the Characters Per Second to 2. The conversant's name prints slower (the typing of the individual characters) but everything after that, the conversants message, the Actor's name and the Actor's response text just appear all at once.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Typewriter Speed

Post by Tony Li »

Inspect the Dialogue Manager GameObject. Set Display Settings > Subtitle Settings > Subtitle Chars Per Second to 2 (or whatever number matches the typewriter effect's Characters Per Second).

What's probably happening is that the line's Sequence is finishing after 2 seconds, which causes the conversation to progress to the next stage. If the conversation progresses to the next stage while the typewriter is still typing, it jumps the typewriter to the end.

If the line's Sequence field is blank, it will use the Dialogue Manager's Camera Settings > Default Sequence. The default value of this field is:

Code: Select all

Delay({{end}})
which delays for a duration based on Subtitle Chars Per Second.
nitrox32
Posts: 68
Joined: Sat Dec 01, 2018 10:41 am

Re: Typewriter Speed

Post by nitrox32 »

That did it! Thanks!
Last edited by nitrox32 on Sun Dec 09, 2018 11:53 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Typewriter Speed

Post by Tony Li »

You're welcome! :)
Post Reply