Change color of NPC name

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Fearinhell
Posts: 44
Joined: Sun Feb 20, 2022 5:53 pm

Change color of NPC name

Post 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!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change color of NPC name

Post 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 884 times
Fearinhell
Posts: 44
Joined: Sun Feb 20, 2022 5:53 pm

Re: Change color of NPC name

Post by Fearinhell »

Is that also for 3d? On a 3d Character the name above their head that appears.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change color of NPC name

Post by Tony Li »

Can you show me a screenshot of the name over the character's head?

Maybe you mean the selector UI?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change color of NPC name

Post 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.
Fearinhell
Posts: 44
Joined: Sun Feb 20, 2022 5:53 pm

Re: Change color of NPC name

Post by Fearinhell »

Thanks, I will attempt to do this the next chance I get to work on my project.
Post Reply