Hi Nishant,
Up to now, developers have requested that the continue button or fast forward button immediately fast-forward the dialogue text all the way to the end. The
Continue Button Fast Forward component does this. It doesn't actually increase typing speed. Instead, it skips the typewriter effect immediately to the end.
If this will meet your needs, here's how you can set it up:
1. Add a Continue Button Fast Forward component to your button:
Component > Dialogue System > UI > Unity UI > Controls > Effects > Continue Button Fast Forward. (Make sure to use the Unity UI version, not the legacy Unity GUI version.)
2. Inspect the Continue Button Fast Forward component. Assign the dialogue UI and the label with the typewriter effect.
3. Set your button's OnClick() handler to call the component's OnFastForward method.
For an explanation of how it works, see the "under the hood" section of the link above.
If you don't want to skip immediately to the end, and instead you want to increase the typing speed and let it continue typing at a faster speed:
1. Make a copy of UnityUITypewriterEffect.cs. (Import the latest Unity UI scripts from the
Extras page.) Assign this copy to your Subtitle Line.
2. The script computes the typing speed at the beginning of the coroutine. Customize your copy so it recomputes the typing speed every frame.
3. Add a method that changes the typing speed. I recommend changing a temporary variable used by the coroutine instead of the public charsPerSecond field. This will leave the public charsPerSecond field untouched to allow the next line to play at its normal speed.
4. Configure your button to call the method in step 3.