Player Portrait image always visible

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Bokus
Posts: 3
Joined: Wed Feb 01, 2023 11:31 am

Player Portrait image always visible

Post by Bokus »

Hi,

I've been trying to create new Dialog UI by cloning Focus Template Standard Dialogue UI.
My goal is to have both player and NPC portraits always visible during conversation.

I managed to get NPC portrait always visible by following suggestion on another thread:
The easiest is probably to duplicate the NPC subtitle panel's animator controller asset. In the duplicate, remove the Unfocus state. Assign the duplicate to the subtitle panel's Animator component. Clear the Standard UI Subtitle Panel component's Unfocus Animation Trigger field.

and NPC portrait is now always shown, but Player is on 0.5 opacity all the time.

Why do I need 2 player portraits and name (1 is in Subtitle Panel 1 (PC) and another in Response Menu Panel)?
I tried disabling those form Response Menu Panel and use only Subtitle Panel 1 (PC) - then player portrait opacity is always 0.5
If I use those form Response Menu Panel they show up on full opacity only when player is speaking.

Is there a simple way to have player portrait always in full opacity?

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

Re: Player Portrait image always visible

Post by Tony Li »

Hi,

You can unassign the menu panel's PC Name and PC Image fields, and set the player's subtitle panel > Visibility to Always From Start. Clear the OnOpen/OnClose/OnFocus/OnUnfocus() UnityEvents on the menu panel and subtitle panels, and clear the Unfocus Animation Trigger fields.
Bokus
Posts: 3
Joined: Wed Feb 01, 2023 11:31 am

Re: Player Portrait image always visible

Post by Bokus »

Thanks Tony for quick reply!

I tried your suggestions but still same result.
Player panel has same animation as NPC (without unfocus)
Attachments
animation.PNG
animation.PNG (30.9 KiB) Viewed 297 times
response menu.PNG
response menu.PNG (68.76 KiB) Viewed 297 times
Player subtitle.PNG
Player subtitle.PNG (64.5 KiB) Viewed 297 times
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Portrait image always visible

Post by Tony Li »

Check the animator controller, or remove the Animator components from the subtitle panels if that's easier.
Bokus
Posts: 3
Joined: Wed Feb 01, 2023 11:31 am

Re: Player Portrait image always visible

Post by Bokus »

Hi Tony,

Removing Animator solved the issue. Thanks!

Just to note for anyone else having this issue is that other than removing Animator, I had to set opacity for panels and images to 1 and remove some events like show and hide to have portrait images showing from start till end of conversation.
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Portrait image always visible

Post by Tony Li »

Glad you got it set the way you want!
Post Reply