Listen for new ConversationStates

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jmnb
Posts: 22
Joined: Thu May 26, 2022 4:38 am

Listen for new ConversationStates

Post by jmnb »

I'd like to set up a listener that receives information each time the current ConversationState changes. I can't see any built-in functionality for this - I'd be grateful if you could tell me what would be the best way to set this up.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Listen for new ConversationStates

Post by Tony Li »

Hi,

Add an OnConversationLine(Subtitle) method to a script on your Dialogue Manager. This method is called every time a conversation goes to a new state. You can read DialogueManager.currentConversationState to get info about the state.
Post Reply