Page 1 of 1

Have differents NPC Subtitle Lines

Posted: Mon Mar 26, 2018 4:52 pm
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

Re: Have differents NPC Subtitle Lines

Posted: Mon Mar 26, 2018 5:44 pm
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.

Re: Have differents NPC Subtitle Lines

Posted: Tue Mar 27, 2018 4:38 am
by Aircer
Thanks a lot !