Page 2 of 2

Re: Portrait names not showing

Posted: Thu Feb 04, 2021 8:29 am
by Keeko
Thank you, that resolved my problem :)

Re: Portrait names not showing

Posted: Thu Feb 04, 2021 9:48 am
by Tony Li
Great! Glad to help, and sorry again about the animator issue.

Re: Portrait names not showing

Posted: Sat Feb 24, 2024 3:41 pm
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.


Re: Portrait names not showing

Posted: Sat Feb 24, 2024 4:05 pm
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).

Re: Portrait names not showing

Posted: Sat Feb 24, 2024 4:43 pm
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.