Setting Up a Timer
-
- Posts: 6
- Joined: Thu Nov 30, 2023 12:07 am
Setting Up a Timer
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
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.)
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.)
-
- Posts: 6
- Joined: Thu Nov 30, 2023 12:07 am
Re: Setting Up a Timer
Ah - thank you! I don't know how I missed that
-
- Posts: 6
- Joined: Thu Nov 30, 2023 12:07 am
Re: Setting Up a Timer
Ah - thank you! I don't know how I missed that