Change NPC Dialogue UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
windsands
Posts: 8
Joined: Thu Dec 29, 2022 6:10 am

Change NPC Dialogue UI

Post by windsands »

I am using the corgi engine. What I want to do is change the UI the NPC (dude) is using. It seems that no-matter what I do I am always stuck in the basic UI.
User avatar
Tony Li
Posts: 22111
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change NPC Dialogue UI

Post by Tony Li »

Hi,

In the integration's "Corgi Example" scene, the Dude NPCs have instances of the ConversationZone prefab. The ConversationZone has a Dialogue Actor component. The Dialogue Actor component's Subtitle Panel Number points to a custom overhead bubble subtitle panel.

If you want to use a similar kind of overhead panel, you can follow the same setup and assign your subtitle panel to the Dialogue Actor component.

If you want NPCs to use a screen space dialogue UI, assign that dialogue UI to the Dialogue Manager GameObject's Display Settings > Dialogue UI. Then set the NPC's Dialogue Actor component > Subtitle Panel Number and Menu Panel Number to

If you want an NPC to use a different screen space dialogue UI than the default one assigned to the Dialogue Manager, add an Override Dialogue UI component to the NPC and assign a dialogue UI or dialogue UI prefab to it.
Post Reply