How can I make the continue button finish the typewriter effect?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lizukadaky101
Posts: 13
Joined: Fri Jan 13, 2023 6:25 pm

How can I make the continue button finish the typewriter effect?

Post by lizukadaky101 »

Hello. Im a total newbie to this plugin so I apologize for such a silly question, I tried to find the solution but I wasnt able to. How can I make it that on click of the continue button during a line of conversation it skips to the end of the line and waits for the next click? In my current instance it skips it right to the next line that goes after the first one.

Thanks to you in advance
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I make the continue button finish the typewriter effect?

Post by Tony Li »

Hi,

Thanks for using the Dialogue System!

1. Add a StandardUIContinueButtonFastForward component to your continue button.

2. Assign the subtitle text GameObject to the component.

3. Configure the Button component's OnClick() event to call StandardUIContinueButtonFastForward .OnFastForward.

To see an example of this configuration, inspect the continue buttons on any of the dialogue UI prefabs that ship with the Dialogue System. They're all configured with StandardUIContinueButtonFastForward.
lizukadaky101
Posts: 13
Joined: Fri Jan 13, 2023 6:25 pm

Re: How can I make the continue button finish the typewriter effect?

Post by lizukadaky101 »

Thank you for your response. Yes, I already have this OnClick Event set up. It does indeed skip the typewriter effect, but it also skips the whole text line. I just need it to fast forward the effect, then wait for another press of the continue button to skip to the next line of conversation.
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I make the continue button finish the typewriter effect?

Post by Tony Li »

Hi,

Make sure the Button's OnClick() event only calls StandardUIContinueButtonFastForward.OnFastForward and nothing else, and that the subtitle text's typewriter effect is assigned to the StandardUIContinueButtonFastForward component.
lizukadaky101
Posts: 13
Joined: Fri Jan 13, 2023 6:25 pm

Re: How can I make the continue button finish the typewriter effect?

Post by lizukadaky101 »

Oh I see, it works like a charm now. Thank you so much!
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I make the continue button finish the typewriter effect?

Post by Tony Li »

Glad to help!
Post Reply