Player Animated Portrait not show when it's response menu.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cruzsoma
Posts: 8
Joined: Thu May 01, 2025 7:36 am

Player Animated Portrait not show when it's response menu.

Post by cruzsoma »

Hi,
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();
        }
    }
4. In Dialogue Manager, Default Response Menu Sequence is empty. And the Default Sequence and Default Player Sequecne both this value:

Code: Select all

AnimatorPlay(Talk, speakerportrait);
required AnimatorPlay(Idle, speakerportrait)@Message(Typed);
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Animated Portrait not show when it's response menu.

Post by Tony Li »

Hi,

What are your subtitle panels' Visibility dropdowns set to?

Is the error coming from the response menu panel's PC Image or a subtitle panel's Portrait Image?
cruzsoma
Posts: 8
Joined: Thu May 01, 2025 7:36 am

Re: Player Animated Portrait not show when it's response menu.

Post by cruzsoma »

The warning "Animator does not have an Animator Controller" comes from the Player's Portrait Image.
And the Player Panel(PC Panel) and Response Menu Panel use same Portrait Image. I ll call it PC Panel and PC Portrait Image below.
Here is the settings of 2 panels:
1. Player Panel(PC Panel):
PC_Panel.png
PC_Panel.png (115.66 KiB) Viewed 1503 times
2. Response Menu Panel:
Response_Panel.png
Response_Panel.png (120.37 KiB) Viewed 1503 times
And this is my current Subtitle Settings in Dialogue Manager:
Subtitle_Settings.png
Subtitle_Settings.png (39.15 KiB) Viewed 1503 times
My current conversation for test(Sorry it's in Japanese):
Conversation_Sample.png
Conversation_Sample.png (44.16 KiB) Viewed 1503 times
Here is what happened currently:
1. The heroine said "What?".
NPC Portrait animation works fine. I can see a Animator Controller was set to NPC Portrait Image
2. Response menu come out.
When the response selection panel come out, I can see the PC Portrait Name. But the PC Portrait Image is inactive.
3. The player choose a response(choosed "I m here to get that item.")
PC Portrait Image become active now, and I can see a white rectangle as Player's Portrait.
4. Then the heroine will say next entry's text: "I have 3".
Same as step 3, I can see a white rectangle Portrait.
5. Player wil say next entry's text: "Thanks!".
I the PC Portrait Image's Animator Controller have value now, and show the Player's animated portrait correctly here. I think because it's just a normal conversation node. not a response menu node.

Btw I tried to tick off the Skip PC Subtitle After Response. The step 2 is same no portrait is come out. But after the reponse chooosed in step3, I can see the player say the choosed text, and show the animated portrait correctly.

So the key point of this issue is when response menu come out the animated portrait for the response's character is not set.
Please let me know if you need any other informations! Thanks!
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Animated Portrait not show when it's response menu.

Post by Tony Li »

Please try this:

1. Back up your project / scene in case you want to revert the changes.

2. Set the PC Subtitle Panel's and NPC Subtitle Panel's Visibility dropdowns to Always From Start.

3. UNassign the Portrait Image from the response menu panel's StandardUIMenuPanel component.

If that doesn't produce what you're looking for, please post a screenshot of your UI. I'm taking some guesses as to how your UI is set up.
cruzsoma
Posts: 8
Joined: Thu May 01, 2025 7:36 am

Re: Player Animated Portrait not show when it's response menu.

Post by cruzsoma »

Thanks for reply!
Still get same result after changed the settngs:
1. Set the PC Subtitle Panel's and NPC Subtitle Panel's Visibility dropdowns to Always From Start.
2. UNassign the Portrait Image from the response menu panel's StandardUIMenuPanel component.
3. (Optional) I ticked off the Skip PC Subtitle After Response.

And this is what I got in runtime:
1. Start Conversation:
Conversation Start.png
Conversation Start.png (55.63 KiB) Viewed 1432 times
2. Response menu come out:
Response menu come out.png
Response menu come out.png (63.38 KiB) Viewed 1432 times
3. After select reponse:
After select response.png
After select response.png (94.62 KiB) Viewed 1432 times
You can see when response menu come out only PC Name(left side) shown, but no pc portrait shown.Of course this time there is no Portrait Image set in the compoent. But seems same result with before changed.

And this is my Dialogue UI Hierarchy:
Dialogue System Hierarchy.png
Dialogue System Hierarchy.png (65.78 KiB) Viewed 1432 times
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Animated Portrait not show when it's response menu.

Post by Tony Li »

Hi,

In the Dialogue Editor, is a portrait image assigned to the Player's Portrait Sprite field?

Can you send a reproduction project to tony (at) pixelcrushers.com? Please include the name of the scene I should play.
Post Reply