I followed this video to setup the animated portrait:https://www.youtube.com/watch?v=8jNQXnyJiBU.
The PC/NPC animated portrait both works well with no response menu conversation.
But when it shows a response menu, after I clicked 1 response, I ll got a warning "Animator does not have an AnimatorController". This warning comes from Player's Portrait Image Game Object.
And I checked the Player's Portrait Image Game Object's Animator Controller. It is None when the response menu shown or after I click a response.
So I think the animator controller is not set to it when using response menu.
In fact the portrait is empty during response menu. But I can found if I assign the Player Dialogue Actor's Portrait in scene, I can see a static portrait when response menu shown.
Want to know if there is any advice can help me solve this.Thanks.
Some informations maybe related:
1. I have a Player Game Object attached Dialogue Actor and set Actor to Player and animator controller.
2. The Use Animated Portraits ticked both PC/NPC panel.
3. I integrated Text Animator and use a custom input action to call the fastforward and continue.
Code: Select all
public void OnFastForward(InputAction.CallbackContext ctx) {
// If still typing, skip to end…
if (textAnimatorPlayer != null && !textAnimatorPlayer.TextAnimator.allLettersShown) {
textAnimatorPlayer.SkipTypewriter();
} else {
if (hideContinueButtonOnContinue && continueButton != null) continueButton.gameObject.SetActive(false);
dialogueUI.OnContinue();
}
}
Code: Select all
AnimatorPlay(Talk, speakerportrait);
required AnimatorPlay(Idle, speakerportrait)@Message(Typed);