Have differents NPC Subtitle Lines

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Aircer
Posts: 2
Joined: Mon Mar 26, 2018 4:46 pm

Have differents NPC Subtitle Lines

Post by Aircer »

Hello,

I just download this asset. I would like to have differents NPC Subtitles Lines. I would like to choose one subtitle line for each actors because I want to change the text appearance for all the characters. For the moment I only have one subtitle line for the player and an other for all the NPCs.

Thanks for your response.
Aircer
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Have differents NPC Subtitle Lines

Post by Tony Li »

Hi Aircer,

Here are the steps to use different subtitle lines for each actor:

1. Use a Unity UI Dialogue UI. Inspect your dialogue UI, and tick Find Actor Overrides.

2. Add UI elements for your other actors. They can be in the same dialogue UI canvas or a different canvas. Deactivate their GameObjects.

3. Inspect the GameObject associated with each actor. Add an Override Unity UI Dialogue Controls component. Assign the actor's UI elements to it. If your GameObject is named differently from the database actor name, add an Override Actor Name component, and enter the database actor name.

Here's an example scene: OverrideDialogueUIControlsExample_2018-03-26.unitypackage

It's also available on the Dialogue System Extras page.

In the example scene, you'll see that the third actor (Sergeant Graves) has an Override Unity UI Dialogue Controls component that points to a set of UI elements in Dialogue Manager > Canvas > Generic Unity UI Dialogue UI > Dialogue Panel > NPC Subtitle Panel 2. For all of the UI element sets, I changed the UI Visibility dropdown to Always Once Shown; this is optional and just depends on how you want it to appear.
Aircer
Posts: 2
Joined: Mon Mar 26, 2018 4:46 pm

Re: Have differents NPC Subtitle Lines

Post by Aircer »

Thanks a lot !
Post Reply