Actor Portraits in Dialogues

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Actor Portraits in Dialogues

Post by thehazard »

Hi,

I've been using [pic=#] to set the actor portraits for my characters. I would only set [pic=#] for my NPCs, but not the main player. In the past, I was using an older version of Dialogue System and when my main character's dialogue came up, the portrait of the previous actor would remain on the screen. But since I've upgraded to the latest version of Dialogue System, something has been changed.
Now, whenever my main player dialogues show up, the actor portrait is no longer the portrait of the previous actor. Now nothing shows up at all during my main player dialogues. I didn't assign any portraits for my main player. I just want to show portraits of the NPCs. Is there any way to revert back to the previous configuration?
Attachments
Capture.PNG
Capture.PNG (141.32 KiB) Viewed 3083 times
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Actor Portraits in Dialogues

Post by Tony Li »

Hi,

Assuming you're using the Standard Dialogue UI system, inspect your dialogue UI's Standard UI Subtitle Panel component and tick Show Only NPC Portraits.
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Re: Actor Portraits in Dialogues

Post by thehazard »

Hi Tony,

Thank you for the fast reply. It seems I'm using one of the deprecated Legacy Unity GUI Prefabs, so I'm not seeing this option to only show NPC portraits. So I'll need to update my dialogue UI to the standard Unity UI for this to work right?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Actor Portraits in Dialogues

Post by Tony Li »

Updating to the Standard Dialogue UI is one way. It has a lot of nice, new features, and in general it's easier to customize.

However, if you just want to stick with the legacy Unity GUI Dialogue UI, configure it like this:

1. Create a copy of your subtitle line GameObject. Name it Subtitle Reminder Line. Remove the typewriter effect, and untick Visible.

2. Inspect the Unity Dialogue UI component. Unassign these fields:
  • PC Subtitle > Portrait Image
  • PC Subtitle > Portrait Name
  • Response Menu > PC Image
  • Response Menu > PC Name
3. Assign the portrait image to Response Menu > Subtitle Reminder > Portrait Image. Also assign Portrait Name if you're using it. Assign Subtitle Reminder Line to the Line field.

Those are general instructions. They may need some adjusting depending on your specific dialogue UI. They work as-is if you're using, for example, the "JRPG" Legacy Unity GUI prefab.
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Re: Actor Portraits in Dialogues

Post by thehazard »

Thank you for the detailed response. I appreciate it Tony. I've spent the last few hours updating to the new unity UI. It's working great so far. Just one more question, how can I hide the NPC subtitles panel when dialogue options pop up for the player? Right now, the response options panel overlays the subtitles panel. I've been trying to solve this for the past hour, but I just can't figure it out. I'm using the VN template standard dialogue.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Actor Portraits in Dialogues

Post by Tony Li »

Hi,

That one's designed so the response panel "hides" the subtitle panels by overlaying them, as you described. You can stretch its borders to the edge of the Dialogue Panel if you see a bit of subtitle text around the edges.

Alternatively, you can inspect the Standard UI Subtitle Panel components on Subtitle Panel 0, 1, and 2, and change Visibility to Only During Content. However, this hides all of the subtitle elements, including the portrait image and name, which you may not want to do.
Post Reply