Page 1 of 1
Change NPC Dialogue UI
Posted: Sun Feb 18, 2024 3:16 pm
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.
Re: Change NPC Dialogue UI
Posted: Sun Feb 18, 2024 4:56 pm
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.