DialogueManager.currentConversant always null

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

DialogueManager.currentConversant always null

Post 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?
User avatar
Tony Li
Posts: 21634
Joined: Thu Jul 18, 2013 1:27 pm

Re: DialogueManager.currentConversant always null

Post 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
Post Reply