Hide continue button in specific dialogue entry

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Demonz312
Posts: 3
Joined: Sat Mar 08, 2025 5:04 am

Hide continue button in specific dialogue entry

Post by Demonz312 »

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.
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Hide continue button in specific dialogue entry

Post by Tony Li »

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
Demonz312
Posts: 3
Joined: Sat Mar 08, 2025 5:04 am

Re: Hide continue button in specific dialogue entry

Post by Demonz312 »

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?
Attachments
Unity_2025-03-08_18-58-12.png
Unity_2025-03-08_18-58-12.png (137.15 KiB) Viewed 1811 times
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Hide continue button in specific dialogue entry

Post by Tony Li »

Hi,

Try setting the "See you later" node's Sequence field to either of these:

Code: Select all

SetContinueMode(false);
{{default}}
or (better yet in your case):

Code: Select all

SetContinueMode(false);
required SetContinueMode(true)@{{end}};
Continue()@{{end}}
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..
Demonz312
Posts: 3
Joined: Sat Mar 08, 2025 5:04 am

Re: Hide continue button in specific dialogue entry

Post by Demonz312 »

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);
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: Hide continue button in specific dialogue entry

Post by Tony Li »

Hi,

Sounds good! Glad to help.
Post Reply