it was my component who was taking control of the portrait render since I am using RenderTexture to render 3D to place it there..
Code: Select all
// dialogueActor is DialogueActor component.
private void Update() {
if (dialogueActor)
{
if (DialogueManager.isConversationActive && DialogueManager.currentConversationState.subtitle.speakerInfo.isNPC)
{
if (DialogueManager.currentConversationState.subtitle.speakerInfo.Name== dialogueActor.actor)
{
if (cam1P) cam1P.SetActive(true);
}
else
{
if (cam1P && cam1P.activeSelf) cam1P.SetActive(false);
}
}
}
}
Is there any other information so I can check the current speaker is the actual actor name, and not the Display Name?
Edit:
Using
Code: Select all
DialogueManager.currentConversationState.subtitle.speakerInfo.nameInDatabase
Code: Select all
DialogueManager.currentConversationState.subtitle.speakerInfo.Name