How to use the same panel for both PC and NPC

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
howevertt322
Posts: 12
Joined: Thu Aug 05, 2021 5:15 pm

How to use the same panel for both PC and NPC

Post by howevertt322 »

Hi Tony,
I am using the Basic Standard Dialogue UI as a base for my game, and I use the same image for both PC and NPC panels, when the conversation continues between PC and NPCs, there is like a 0.5s panel background toggle time. I want they use the same image and the background always stays there, am I using the wrong template?
User avatar
Tony Li
Posts: 21961
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to use the same panel for both PC and NPC

Post by Tony Li »

Hi,

It's fine to use that template as a starting point and customize it. Duplicate the Basic Standard Dialogue UI prefab. Assign your duplicate to the Dialogue Manager GameObject's Display Settings > Dialogue UI field. Then edit it:

1. Remove PC Subtitle Panel.
2. Rename NPC Subtitle Panel to just Subtitle Panel.
3. Remove the empty/missing element from the Basic Standard Dialogue UI's StandardDialogueUI > Conversation UI Elements > Subtitle Panels list.
4. Assign Subtitle Panel to the Default PC Subtitle Panel field.
Post Reply