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.
[Solved!] How to find out if a conversation is running via C# script.
-
- Posts: 111
- Joined: Thu Sep 27, 2018 11:06 pm
[Solved!] How to find out if a conversation is running via C# script.
Last edited by CodePrincess on Tue Nov 10, 2020 8:19 pm, edited 1 time in total.
Thank you so much for your help.
Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
Re: How to find out if a conversation is running via C# script.
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:
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:
- Add a Dialogue System Events component to the Dialogue Manager GameObject.
- OR add a script with an OnConversationEnd(Transform) method.
-
- Posts: 111
- Joined: Thu Sep 27, 2018 11:06 pm
Re: [Solved!] How to find out if a conversation is running via C# script.
Oooohhh, DialogueManager! Of course!
That did it! My Scene Menu is saved!
Thanks again, SuperTony!
That did it! My Scene Menu is saved!
Thanks again, SuperTony!
Thank you so much for your help.
Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
Re: [Solved!] How to find out if a conversation is running via C# script.
Awesome! Happy to help!