[HOWTO] How To: Set Up Continue Button Typewriter Fast Forward
Posted: Tue Jun 25, 2024 8:22 am
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:
Related:
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:
Related: