Page 1 of 1
Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Tue Oct 25, 2022 10:05 am
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.
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Tue Oct 25, 2022 10:59 am
by Tony Li
Hi,
By "custom UI," do you mean a complete custom dialogue UI, or a custom subtitle panel for the character?
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Wed Oct 26, 2022 5:38 am
by Saper
Hi
A Custom subtitle panel
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Wed Oct 26, 2022 8:01 am
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.
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Mon Oct 31, 2022 7:33 am
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.
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Mon Oct 31, 2022 8:04 am
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 (82.38 KiB) Viewed 728 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()?
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Mon Oct 31, 2022 9:19 am
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
Re: Custom UI don't hide after using DialogueManager.StopConversation()
Posted: Mon Oct 31, 2022 12:01 pm
by Tony Li
I'm glad it's working now.