Help with Controlling Portraits

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SystemId
Posts: 30
Joined: Thu Aug 08, 2019 1:31 pm

Help with Controlling Portraits

Post by SystemId »

Sorry for seeking help that seems a little newbie:

I am having problems controlling which Portraits display in any conversation. I've been going through tutorials, and forum posts but the answers do not seem to be solving my problem.

I am currently using a Dialogue with a variation of the Focus Template.
I've even tried to look at the Visual novel example tutorial.

PC Panel 1 setup on the Left Side
NPC Panel 0 setup on the Right Side.

What is happening currently with a simple 2 Step Conversation:
Player starts Conversation.

1) Player's Portrait fades in on the Right Side. (When I set PC to be the Left Portrait) NPC's portrait is missing.
2) Players's portrait goes into Focus and begins Dialogue.
3) NPC's Portrait Overwrites the Player's Portrait on the Right side still in Focus and begins Dialogue.
4) Conversation Ends and the NPC Portrait Fades Out while still being on the right side.

Ideally what I want to happen:

1) Conversations between PC and NPC:
I want both Left and Right portraits to Fade in at the start of the Conversation. Unfocused.

2) I want it to focus on either the NPC if they are starting the conversation, or I want the Dialogue to focus on the Player if they are starting the conversation.

3) When the conversation ends, Both Portraits are Unfocused and fade out. The Fade in/out are just performed by animations.

- The correct Names show up for who is speaking though.



I am seeking help on how to control which character appears in which Panel. I am having trouble grasping which Panel the Dialogue system is assigning to which Character, because I know I will have to add some more Panels, and control conversations that have more than 2 Characters.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help with Controlling Portraits

Post by Tony Li »

Hi,

In the Dialogue Editor, make sure your Player actor's Is Player checkbox is ticked. This is how the Dialogue System knows to use the player subtitle panel and show response menus.

To get portraits to appear when the conversation starts, tick each subtitle panel's Visibility dropdown to Always From Start.

Since you're doing Focus animations, it's probably easiest to start with the Focus prefab. Here's an example:

DS_VNFocusPortraitExample_2020-04-15.unitypackage

Or, if you want to update your existing dialogue UI, compare it to the example. Make sure the Focus and Unfocus Animation Triggers are set. Notice also that both subtitle panels' OnOpen() event sets the alpha to 0.5 to force them to start unfocused.

If your characters are still showing up in the wrong panels, check these things:
  • Standard Dialogue UI component: Default NPC Subtitle Panel is set to panel 0. Default PC Subtitle Panel is set to panel 1.
  • Player GameObject: If it has a Dialogue Actor component, the player actor is selected, and the Dialogue UI Settings > Panel Number is set to Default or Panel 1.
  • Player actor: Is Player is ticked.
SystemId
Posts: 30
Joined: Thu Aug 08, 2019 1:31 pm

Re: Help with Controlling Portraits

Post by SystemId »

Thanks Tony. The Package had the settings that I am looking for.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help with Controlling Portraits

Post by Tony Li »

Great! Glad to help.
Post Reply