[2.0] Conversation dialogue panel is displayed once when calling ShowAlert

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

[2.0] Conversation dialogue panel is displayed once when calling ShowAlert

Post by mgregoirelds »

Hello Tony,

I've been converting some of my custom Dialogue UI to use Standard Dialogue UI and I'm having an issue.

I have a Dialogue UI GameObject that contains both an Alert panel and a Conversation panel. For some reasons, the first time I'm calling DialogueManager.ShowAlert(), an empty Conversation panel is also displayed for less than a second, but it is still displayed. I can't reproduce the bug if I hit a Conversation first... DialogueManager.ShowAlert() must be the first thing I call when I load the game. FYI, I'm using TMP.
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
User avatar
Tony Li
Posts: 22058
Joined: Thu Jul 18, 2013 1:27 pm

Re: [2.0] Conversation dialogue panel is displayed once when calling ShowAlert

Post by Tony Li »

Hi,

Is your dialogue UI a prefab that's assigned to the Dialogue Manager's Dialogue UI field, or is an instance already in the scene at design time?

Please try this: Inspect the dialogue panel. It has a UI Panel component. Set the State State dropdown to Closed.

If that doesn't fix it, and if the dialogue panel is active at design time, please try setting it inactive and replay the scene.

Finally, if that doesn't fix it, compare the Animator components on the alert panel and dialogue panel. Maybe the dialogue panel has an Animator that puts it in a funny starting state.

If any of these fix the issue, please let me know which one did it. I'd like to make the process as easy and failsafe as possible for everyone in the future.

You can also send a reproduction project to tony (at) pixelcrushers.com. I'd be happy to take a look.
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

Re: [2.0] Conversation dialogue panel is displayed once when calling ShowAlert

Post by mgregoirelds »

Hello Tony,

I've reproduced the problem with the JRPG Template Standard Dialogue UI. I've sent you a repro project by email.
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
User avatar
Tony Li
Posts: 22058
Joined: Thu Jul 18, 2013 1:27 pm

Re: [2.0] Conversation dialogue panel is displayed once when calling ShowAlert

Post by Tony Li »

Hello Maxime,

Thanks for sending the project. I believe this is fixed in patch 20180607, which I sent you in an email. If anyone else needs the patch, please PM me your Unity Asset Store invoice number. The fix will also be in version 2.0.1.
Post Reply