Page 1 of 1

Setting Up a Timer

Posted: Thu Nov 30, 2023 12:18 am
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!

Re: Setting Up a Timer

Posted: Thu Nov 30, 2023 8:46 am
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.)

Re: Setting Up a Timer

Posted: Thu Nov 30, 2023 10:47 am
by SilencedMage
Ah - thank you! I don't know how I missed that

Re: Setting Up a Timer

Posted: Thu Nov 30, 2023 10:47 am
by SilencedMage
Ah - thank you! I don't know how I missed that

Re: Setting Up a Timer

Posted: Thu Nov 30, 2023 10:53 am
by Tony Li
Glad to help!