Page 1 of 1

Change color of NPC name

Posted: Sun Feb 20, 2022 5:56 pm
by Fearinhell
This is my first day working with the dialogue system and so far am loving it. I have a question and I know it is very simple, how do I change the color above the NPC in my game? Currently its set to yellow. I have changed the color of the text and backgrounds during the UI but am lost as to what the above the head is called? Maybe potrait name? But Im not seeing a good place to change any colors on those settings. Thanks!

Re: Change color of NPC name

Posted: Sun Feb 20, 2022 8:59 pm
by Tony Li
Hi,

If you mean these Portrait Names, then locate the dialogue UI's subtitle panel component > Portrait Name field:

portraitNameColor.png
portraitNameColor.png (57.9 KiB) Viewed 966 times

Re: Change color of NPC name

Posted: Mon Feb 21, 2022 7:32 am
by Fearinhell
Is that also for 3d? On a 3d Character the name above their head that appears.

Re: Change color of NPC name

Posted: Mon Feb 21, 2022 9:02 am
by Tony Li
Can you show me a screenshot of the name over the character's head?

Maybe you mean the selector UI?

Re: Change color of NPC name

Posted: Mon Feb 21, 2022 8:40 pm
by Tony Li
Thanks for sending the screenshot in PM. That's the selector UI. To customize it:
  • Duplicate Plugins/Pixel Crushers/Dialogue System/Prefabs/Standard UI Prefabs/Template/Basic/Basic Standard UI Selector Elements. I recommend moving the duplicate to your own folder in the project.
  • Assign your duplicate copy to the Dialogue Manager GameObject's Instantiate Prefabs component > Prefabs list in place of the original.
  • Inspect your duplicate copy, and change In Range Color and Out Of Range Color to whatever you want.
  • I recommend removing the Reticle In Range and Reticle Out of Range GameObjects unless you want them.

Re: Change color of NPC name

Posted: Tue Feb 22, 2022 8:25 pm
by Fearinhell
Thanks, I will attempt to do this the next chance I get to work on my project.