Problem with response timer after game pause/resume

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
elektronische
Posts: 9
Joined: Mon Dec 03, 2018 4:31 pm

Problem with response timer after game pause/resume

Post by elektronische »

Hi,

I hope everything is going well!

I was wondering if you could help me with an issue. The response panel is working perfectly, but I've noticed that when I pause the game and then resume it while a response panel is open, the timer freezes. The navigation works properly, but the timer no longer progresses and the slider value remains the same.

Do you have any ideas on how to solve this?

Plus question: is there a variable that would enable me to verify if a response panel is currently active?

Thank you as always!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with response timer after game pause/resume

Post by Tony Li »

If you deactivate the response menu's timer GameObject and reactivate it, the timer won't resume in version 2.2.35 and earlier. This patch (which will be in 2.2.36) fixes that:

DS_TimerPatch_2023-03-28.unitypackage

(Also available on the Dialogue System Extras page.)

To check if the response menu is open, you can check:

Code: Select all

bool isMenuOpen = DialogueManager.standardDialogueUI.conversationUIElements.defaultMenuPanel.isOpen;
elektronische
Posts: 9
Joined: Mon Dec 03, 2018 4:31 pm

Re: Problem with response timer after game pause/resume

Post by elektronische »

Tony Li wrote: Tue Mar 28, 2023 8:37 pm If you deactivate the response menu's timer GameObject and reactivate it, the timer won't resume in version 2.2.35 and earlier. This patch (which will be in 2.2.36) fixes that:

DS_TimerPatch_2023-03-28.unitypackage

(Also available on the Dialogue System Extras page.)

To check if the response menu is open, you can check:

Code: Select all

bool isMenuOpen = DialogueManager.standardDialogueUI.conversationUIElements.defaultMenuPanel.isOpen;
Thanks as always, it works perfect!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with response timer after game pause/resume

Post by Tony Li »

Glad to help!
Post Reply