Setting up dialogue advancing/pacing on click

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
FishFern
Posts: 4
Joined: Mon Sep 26, 2022 10:40 am

Setting up dialogue advancing/pacing on click

Post by FishFern »

Hi Everyone,

I hope you're all well! :)

Apologies if this query has been posed before, I looked through the documentation and searched the forums, but couldn't seem to find what I'm looking for, so I'm assuming I have my terminology wrong!

I was wondering if there was a way/some settings to set my Dialogue system so that if dialogue is appearing on screen and players click, the full message is instantly displayed, and then if they click again, it will advance to the next piece of dialogue (similar to traditional visual novel style dialogue pacing).

I just set my pacing to use the 'Always' option for the continue button, which is a decent workaround, but I'd love the ability for players to reveal the whole message with a click (anywhere on screen), then click (again, anywhere on screen) to advance to the next piece of dialogue.

Any help with this is very appreciated!

Thanks so much! :)
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting up dialogue advancing/pacing on click

Post by Tony Li »

Hi,

Add a StandardUIContinueButtonFastForward component to your continue button. Make sure to assign the subtitle text UI element to it. Then configured the UI Button component's OnClick() to call StandardUIContinueButtonFastForward .OnFastForward. The prefab dialogue UIs that ship with the Dialogue System are all set up like this.

See How To: Continue Without UI Button if you want the player to be able to click anywhere on the screen.

Since you mentioned visual novels, there's also a ConversationControl component that adds two features: Toggle Auto Play (flip continue button mode between Always and Never) and Skip All (skip all subtitles until the next response menu or end of conversation).
FishFern
Posts: 4
Joined: Mon Sep 26, 2022 10:40 am

Re: Setting up dialogue advancing/pacing on click

Post by FishFern »

Hi Tony,

Wow, thanks so much for the help, that was perfect! The helpful wizard had already setup the continue button, so I double checked all of that, but I'd never thought to just resize it across the screen--it works like a charm!

Thanks so much!

I hope you have a good one!
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting up dialogue advancing/pacing on click

Post by Tony Li »

Glad to help!
Post Reply