Setting Up a Timer

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SilencedMage
Posts: 6
Joined: Thu Nov 30, 2023 12:07 am

Setting Up a Timer

Post by SilencedMage »

I'm brand new to this wonderful dialogue tool, so excuse my ignorance! I have a slider setup and set as the Timer in the dialogue options. But I can't for the life of me find how to enable it, or how to decide what happens when the timer runs out. I'm sure this is pretty simple, but it wasn't mentioned in any of the tutorials I could find. Any pointers would be appreciated!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting Up a Timer

Post by Tony Li »

Hi,

You can set up the timer duration in the Dialogue Manager GameObject's Display Settings > Input Settings > Timeout Duration. If it's non-zero, conversation response menus will run a timer and time out after this duration in seconds.

To specify what happens if the menu times out, set Input Settings > Response Timeout Action.

To show a visual of the timer, edit your dialogue UI and inspect your response menu. Assign your UI Slider to the Standard UI Menu Panel component's Timer Slider field. (The dialogue UI prefabs that ship with the Dialogue System already have timer sliders available in their response menus.)

If you only want to run a timer for some menus but not all, use the SetTimeout() sequencer command. (For more info about sequencer commands, see Cutscene Sequences.)
SilencedMage
Posts: 6
Joined: Thu Nov 30, 2023 12:07 am

Re: Setting Up a Timer

Post by SilencedMage »

Ah - thank you! I don't know how I missed that
SilencedMage
Posts: 6
Joined: Thu Nov 30, 2023 12:07 am

Re: Setting Up a Timer

Post by SilencedMage »

Ah - thank you! I don't know how I missed that
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting Up a Timer

Post by Tony Li »

Glad to help!
Post Reply