a fast-forward button

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rickyzhangv
Posts: 1
Joined: Wed Aug 22, 2018 1:59 am

a fast-forward button

Post by rickyzhangv »

Hi Tony,
I'm tying to write a C# in unity which can automatically click continue button . Just like a fast-forward button in AVG game ,when people want to fast-forward skip dialog they can use . It has to stop when people meet a response choice in conversation.
Can you help on this ? Thank you.

Thanks,
Ricky
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: a fast-forward button

Post by Tony Li »

Hi Ricky,

Inspect the Dialogue Manager GameObject, and set Subtitle Settings > Min Subtitle Seconds to 0. Set Subtitle Settings > Subtitle Chars Per Second to the same value as the typewriter effect's Characters Per Second on the subtitle text UI element.

To enter fast-forward mode:

Code: Select all

using PixelCrushers.DialogueSystem;
...
DialogueManager.displaySettings.subtitleSettings.continueButton = DisplaySettings.SubtitleSettings.ContinueButtonMode.Optional;
To exit fast-forward mode:

Code: Select all

DialogueManager.displaySettings.subtitleSettings.continueButton = DisplaySettings.SubtitleSettings.ContinueButtonMode.Always;
Post Reply