Custom UI don't hide after using DialogueManager.StopConversation()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Saper
Posts: 52
Joined: Tue Jan 12, 2021 11:25 am

Custom UI don't hide after using DialogueManager.StopConversation()

Post by Saper »

Hi Tony

We created a custom mechanic to skip our cutscenes it use DialogueManager.StopConversation() stop ongoing conversations but when there is actor using custom UI, that custom UI stays on the screen after the skip. This problem does not appear when Default UI is displayed on the screen. Maybe you've encountered such a problem.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Tony Li »

Hi,

By "custom UI," do you mean a complete custom dialogue UI, or a custom subtitle panel for the character?
Saper
Posts: 52
Joined: Tue Jan 12, 2021 11:25 am

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Saper »

Hi

A Custom subtitle panel
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Tony Li »

Would you please send a reproduction project or reproduction steps to tony (at) pixelcrushers.com? I haven't been able to reproduce this issue, so I'll need to see what your project is doing.
Saper
Posts: 52
Joined: Tue Jan 12, 2021 11:25 am

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Saper »

Hi Tony

I can't send you a project, but we found fix for our problem. I added new subtitle panel to Standard Dialogue UI "Subtitle Panels" list and on actor it was set to use Panel 1. I think the problem might have been caused because we have Dialogue Menager on Logic scene and custom Subtitle panel was on Visual scene.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Tony Li »

Hi,

You can assign panels that are in the dialogue UI's hierarchy to the StandardDialogueUI component's Subtitle Panels list:

subtitlePanels.png
subtitlePanels.png (82.38 KiB) Viewed 723 times

For the original issue, are there any errors or warnings when you stop the conversation?

Does the custom UI disappear if the conversation ends normally instead of using DialogueManager.StopConversation()?
Saper
Posts: 52
Joined: Tue Jan 12, 2021 11:25 am

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Saper »

Hi Tony

No Errors and no Debug logs. If Continue button is press before without StopConversation, Custom UI is switch off.
Like i wrote in last post after adding Subtitle panel to list and change it place to logic scene it work now properly.

Thanks you again
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI don't hide after using DialogueManager.StopConversation()

Post by Tony Li »

I'm glad it's working now.
Post Reply