Dialogue UI sometimes doesn't show after quitting conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Dialogue UI sometimes doesn't show after quitting conversation

Post by lostmushroom »

Hey Tony, I've got a weird problem.

I'm using the Visual Novel Dialogue UI, so when the conversation ends, it returns to the main menu. When I click play again, the UI often doesn't show up (it seems like it's present but invisible, since I can click where the buttons should be and the conversation will advance). This also sometimes happens when I quit to main menu using the quit button.

Strangely, this only happens maybe 50% of the time. I've been trying to figure out what exactly might be causing it, but it seems random.

I've customised the UI a little by adding some animated elements to show stats and some additional text boxes.

Do you have any ideas where I might start looking to figure this out?
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI sometimes doesn't show after quitting conversation

Post by Tony Li »

When that happens, open Unity's Animator window and inspect the dialogue UI GameObjects that have Animator components, such as Dialogue Panel and the Subtitle Panels. Maybe an Animator is stuck in a state where it's hiding the UI.
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Re: Dialogue UI sometimes doesn't show after quitting conversation

Post by lostmushroom »

I just tried that - it doesn't seem to be an animator problem, both the Dialogue Panel and Subtitle Panels are playing the Show clip.
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI sometimes doesn't show after quitting conversation

Post by Tony Li »

Hi,

Can you identify what's making it not visible? Is there a Canvas Group whose Alpha is set to zero? Is a Canvas component disabled?

If you set the Dialogue Manager's Other Settings > Debug Level to Info, does the Console show that the conversation is starting again? Maybe the conversation is failing to start again.

Feel free to send a reproduction project to tony (at) pixelcrushers.com
Post Reply