There are two ways to move the conversation to the next node.
1. Normally, a conversation stays on a node (and keeps the subtitle visible) until its Sequence is done.
The player can cancel the Sequence early by pressing the Cancel Subtitle Input:
This will immediately stop the Sequence and progress to the next stage of the conversation.
2. You can also configure the Dialogue Manager to wait for a continue button click. There are many options:
If you set the Continue Button dropdown to a mode that tells the Dialogue System to wait for the player to click the continue button, it will activate your dialogue UI's continue button. The continue button's OnClick method can call the dialogue UI's OnContinue() method, or if your subtitle text uses a typewriter effect you can add a Continue Button Fast Forward component:
If the continue button calls the Continue Button Fast Forward component's OnFastForward() method, the first click will fast-forward the typewriter to the end. If the typewriter is already at the end, it will call the dialogue UI's OnContinue() method, which will continue the conversation.
You can also manually simulate a continue button click by using the Continue() sequencer command in your Sequence. For example, to simulate a continue button click at the 2-second mark:
Code: Select all
Continue()@2
- Make the continue button cover the entire screen.
- Set the continue button's Image alpha value to 0. This makes the button invisible.
- You may want to tick the Dialogue Manager's Input Device Manager > Auto Focus. This will automatically focus the continue button so the player can press the joystick's 'A' button to use the continue button. If you want to map a different joystick button as a hotkey for the continue button, add a UI Button Key Trigger component to the continue button.