Portrait names not showing

Announcements, support questions, and discussion for the Dialogue System.
Keeko
Posts: 33
Joined: Mon Feb 01, 2021 8:08 pm

Re: Portrait names not showing

Post by Keeko »

Thank you, that resolved my problem :)
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portrait names not showing

Post by Tony Li »

Great! Glad to help, and sorry again about the animator issue.
AnEmortalKid
Posts: 2
Joined: Sat Feb 24, 2024 3:36 pm

Re: Portrait names not showing

Post by AnEmortalKid »

I still had some problems even after applying the patch.

Removing the animator (or disabling it), seemed to work to avoid hiding the name, no idea how the animator references the text name field.

I found a work around here. I added a new group object to the panel and put the text underneath it, I think this ends up breaking whatever the animator tries to do to the text, and the NPC names are always displayed.

Here's an imgur album showing the hierarchy setup to break this magic, and a gif that shows the group is always active regardless of what the focus does. This still plays the unfocus animation on the portrait, but leaves the name visible.

User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portrait names not showing

Post by Tony Li »

Thanks for the update. Some of the dialogue UIs use the OnOpen()/Close()/Focus()/Unfocus() UnityEvents to control portrait names, so if someone is seeing unexpected behavior, make sure to look there as well as what's configured in the animation clip(s).
AnEmortalKid
Posts: 2
Joined: Sat Feb 24, 2024 3:36 pm

Re: Portrait names not showing

Post by AnEmortalKid »

Thank you so much Tony, I didn't notice my animation window didn't display anything for a bit since I had the wrong element selected. For those that were lost like me, here's some tips:

If you have the Animation panel open, when you select a SubtitlePanel, you should be able to see the references in the clip:



Also look at the KeyFrames , since they set different states:

- First Key Frame
- Last key frame

I can confirm the label stays as desired when you update the Focus Color keyframe for the first frame to also set it to active.

Post Reply