Page 1 of 1

How to use the same panel for both PC and NPC

Posted: Fri Jan 13, 2023 7:34 pm
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?

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

Posted: Fri Jan 13, 2023 8:33 pm
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.