Page 1 of 1

[Solved!] How to find out if a conversation is running via C# script.

Posted: Tue Nov 10, 2020 4:13 pm
by CodePrincess
For those of you following my programming adventures (Hi, Tony!), I've been trying to make a menu activate after a conversation loaded from a game save ends. It seems like some kind of "Conversation ended" signal is set off immediately when a conversation in a game save is loaded.

Now I want to try activating the menu when a conversation isn't running. That's in DialogueSystemController, right?
How should I access that information?

Thank you very much for lending an ear.

Re: How to find out if a conversation is running via C# script.

Posted: Tue Nov 10, 2020 4:38 pm
by Tony Li
Hi Melissa,

There are several ways to know when a conversation is active and when one starts or ends.

To check if a conversation is active, check DialogueManager.isConversationActive.

To be notified when a conversation ends:

Re: [Solved!] How to find out if a conversation is running via C# script.

Posted: Tue Nov 10, 2020 8:21 pm
by CodePrincess
Oooohhh, DialogueManager! Of course!

That did it! My Scene Menu is saved!

Thanks again, SuperTony!

Re: [Solved!] How to find out if a conversation is running via C# script.

Posted: Tue Nov 10, 2020 8:57 pm
by Tony Li
Awesome! Happy to help!