Page 1 of 1

DialogueManager.currentConversant always null

Posted: Fri Mar 03, 2023 3:45 am
by pmand
Whenever I call DialogueManager.currentConversant, it returns null (DialogueManager.currentActor works fine though).
I made sure there's Dialogue Actor component on both gameobjects.

What could be the reason for DialogueManager.currentConversant to return null during a conversation?

Re: DialogueManager.currentConversant always null

Posted: Fri Mar 03, 2023 7:55 am
by Tony Li
Hi,

Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. Then play the scene in the editor and start a conversation. Look for a line like this in the Console window:

Dialogue System: Starting conversation 'Title' with actor=XXX and conversant=YYY

This will tell you which GameObject is being used as the conversant. If YYY is blank, then it didn't find an appropriate GameObject to use as the conversant. This info might help: Character GameObject Assignments