Page 1 of 1

Where can I get the current conversation

Posted: Thu Apr 10, 2025 3:39 pm
by dunathan
As the title says, I need to fetch the conversation being played at a moment.

Re: Where can I get the current conversation

Posted: Thu Apr 10, 2025 4:07 pm
by dunathan
I found what I needed under currentConversationState.subtitle.activeConversationRecord.ConversationTitle

But how to get the conversation itself? I need it for accessing dialogue entries list.

Re: Where can I get the current conversation

Posted: Thu Apr 10, 2025 8:20 pm
by Tony Li
If you're only starting one conversation at a time, you can simplify it to:

Code: Select all

Conversation conversation = DialogueManager.masterDatabase.GetConversation(DialogueManager.lastConversationStarted);
If you allow multiple conversations to run simultaneously, you'll need to use DialogueManager.activeConversations to get the record for the conversation you want, and then use DialogueManager.masterDatabase.GetConversation().[/code]

Re: Where can I get the current conversation

Posted: Fri Apr 11, 2025 7:25 am
by dunathan
Thank you very much!

Re: Where can I get the current conversation

Posted: Fri Apr 11, 2025 8:13 am
by Tony Li
Happy to help!