[Solved] Which Conversation is Active?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

[Solved] Which Conversation is Active?

Post by Japtor »

Hi,

Is there a way to know which conversation is currently playing?

Thanks! :)
Last edited by Japtor on Tue Dec 11, 2018 3:55 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Which Conversation is Active?

Post by Tony Li »

Hi,

Yes:

Code: Select all

if (DialogueManager.isConversationActive) {
    Debug.Log("Active conversation is " + DialogueManager.lastConversationStarted);
}
You can also check DialogueManager.currentConversationState.subtitle.dialogueEntry.conversationID if you prefer.
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Re: Which Conversation is Active?

Post by Japtor »

Hi,

Thanks! However, I have tried to use DialogueManager.LastConversationID instead, and it works!

But the other suggestions also do what I was looking for! :)
Post Reply