Page 1 of 1

Listen for new ConversationStates

Posted: Tue Aug 23, 2022 4:20 pm
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.

Re: Listen for new ConversationStates

Posted: Tue Aug 23, 2022 5:06 pm
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.