hey, i want to hide continue button in specific dialogue entry so it will continue to the next dialogue or if the dialogue is the last one, show the dialogue without continue button and close after few seconds.
i tried to use the SetContinueMode(false) but it disables completely the dialogue.
so is there sequence that exist or i need to implement it? or there is other way to do so?
thanks.
Hide continue button in specific dialogue entry
Re: Hide continue button in specific dialogue entry
Hi,
SetContinueMode(false) should not disable the conversation. It will hide the continue button and set the Dialogue Manager's Continue Button mode to Never, which means the conversation will advance as soon as the dialogue entry's Sequence is done.
More info: How To: Control the Duration of Subtitle Text
SetContinueMode(false) should not disable the conversation. It will hide the continue button and set the Dialogue Manager's Continue Button mode to Never, which means the conversation will advance as soon as the dialogue entry's Sequence is done.
More info: How To: Control the Duration of Subtitle Text
Re: Hide continue button in specific dialogue entry
seems like i'm doing something wrong.
when player choose the response "Sorry, I'm busy right now." the next dialogue entry "See you later" never shows if it has in sequence SetContinueMode(false) and the dialogue ends.
what i'm doing wrong here?
when player choose the response "Sorry, I'm busy right now." the next dialogue entry "See you later" never shows if it has in sequence SetContinueMode(false) and the dialogue ends.
what i'm doing wrong here?
- Attachments
-
- Unity_2025-03-08_18-58-12.png (137.15 KiB) Viewed 1812 times
Re: Hide continue button in specific dialogue entry
Hi,
Try setting the "See you later" node's Sequence field to either of these:
or (better yet in your case):
The first sequence turns off the continue button and uses the {{default}} keyword to also play the Dialogue Manager's Default Sequence, which by default delays for a duration. Otherwise, since SetContinueMode(false) runs and finishes immediately, the Sequence will finish immediately, leaving no time for the player to see the subtitle. Note: Since you've turned off the continue button mode, the continue button mode will stay off until you turn it back on via SetContinueMode(true).
In the second sequence, the first line turns off continue button mode immediately. The second line turns it back on after a duration based on the text length. (See the link above.) The third line simulates a continue button click at the same time so the player doesn't have to click continue. Note that the second command has "required" in front, which guarantees that the command will run even if the Continue() command happens to run first and skips the conversation ahead..
Try setting the "See you later" node's Sequence field to either of these:
Code: Select all
SetContinueMode(false);
{{default}}
Code: Select all
SetContinueMode(false);
required SetContinueMode(true)@{{end}};
Continue()@{{end}}
In the second sequence, the first line turns off continue button mode immediately. The second line turns it back on after a duration based on the text length. (See the link above.) The third line simulates a continue button click at the same time so the player doesn't have to click continue. Note that the second command has "required" in front, which guarantees that the command will run even if the Continue() command happens to run first and skips the conversation ahead..
Re: Hide continue button in specific dialogue entry
Thank you for your help!
i ended up with setting the SetContinueMode(false); on the player response so the next node will be without the continue button and at the start dialogue "Hello there, traveler!" reseting it back to SetContinueMode(true);

i ended up with setting the SetContinueMode(false); on the player response so the next node will be without the continue button and at the start dialogue "Hello there, traveler!" reseting it back to SetContinueMode(true);
Re: Hide continue button in specific dialogue entry
Hi,
Sounds good! Glad to help.
Sounds good! Glad to help.