Page 1 of 1

[Solved] Which Conversation is Active?

Posted: Tue Dec 11, 2018 1:28 pm
by Japtor
Hi,

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

Thanks! :)

Re: Which Conversation is Active?

Posted: Tue Dec 11, 2018 1:58 pm
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.

Re: Which Conversation is Active?

Posted: Tue Dec 11, 2018 3:54 pm
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! :)