[HOWTO] How To: Set Up Continue Button Typewriter Fast Forward

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22083
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] How To: Set Up Continue Button Typewriter Fast Forward

Post by Tony Li »

If you've enabled continue button mode by setting the Dialogue Manager's Display Settings > Subtitle Settings > Continue Button dropdown or by using the SetContinueMode() sequencer command, subtitle panels will wait for a continue button click. A basic continue button assigned to the subtitle panel's Continue Button field will immediately advance the conversation. (You can also advance it in a sequence by using the Continue() sequencer command.)

However, if your subtitle text has a typewriter effect, you can also configure your continue button to simply fast forward the typing to the end if it's still typing.

The dialogue UI prefabs that ship with the Dialogue System all work this way. On those prefabs, the continue buttons have a StandardUIContinueButtonFastForward component. The subtitle text's typewriter effect is assigned to it. The Button component's OnClick() calls StandardUIContinueButtonFastForward.OnFastForward:

continueButtonFastForward.png
continueButtonFastForward.png (90.16 KiB) Viewed 1414 times

Related:
Post Reply