Menu Panel showing up from the start after resetting conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AJWantsToSleep
Posts: 18
Joined: Wed Jun 19, 2024 2:44 pm

Menu Panel showing up from the start after resetting conversation

Post by AJWantsToSleep »

Hello, I have the following Problem:

If I reach the MenuPanel in the dialog and then end the dialog using a 'CloseButton,' but then start the dialog again, the MenuPanel appears from the beginning, even though it shouldn't be there yet.

How can I fix this problem?
Attachments
First Dialogue Node before CloseButton was pressed
First Dialogue Node before CloseButton was pressed
Screenshot 2024-07-30 161331.png (21.73 KiB) Viewed 539 times
First Dialogue Node after CloseButton was pressed
First Dialogue Node after CloseButton was pressed
Screenshot 2024-07-30 161350.png (32.5 KiB) Viewed 539 times
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by Tony Li »

Hi,

What close button are you using?

Can you close the conversation by calling DialogueManager.StopConversation() instead?
AJWantsToSleep
Posts: 18
Joined: Wed Jun 19, 2024 2:44 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by AJWantsToSleep »

Close Button: The small [X] in the upper right corner.
I'm using it to end the conversation whenever i want to.
I also have to confirm that i want to stop the conversation.
And on my Confiramtion Button is a Script with DialogueManager.StopConversation();

So it should be working, sadly it doesn't.
I mean, the conversation is being stopped just fine. And the dialogue resets after starting it again. But the MenuPanel is already active starting from the first node instead of the third
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by Tony Li »

Hi,

Are there any errors or warnings in the Console window?

On the menu panel's Standard UI Menu Panel component, is Deactivate On Hide ticked?
AJWantsToSleep
Posts: 18
Joined: Wed Jun 19, 2024 2:44 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by AJWantsToSleep »

There are no warnings and Deactivate On Hide is ticked.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by Tony Li »

Can you send a reproduction project to tony (at) pixelcrushers.com?
AJWantsToSleep
Posts: 18
Joined: Wed Jun 19, 2024 2:44 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by AJWantsToSleep »

Hey, I actually found a really easy answer just now. Just had to set my MenuPanel on SetActive(false) when the Start of a Conversation is triggered.

Thank you for the help!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu Panel showing up from the start after resetting conversation

Post by Tony Li »

Hi,

I guess that'll work. But if you'd ever like to get to the bottom of the issue, feel free to send a reproduction project.
Post Reply