Change color of NPC name
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Change color of NPC name
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
Hi,
If you mean these Portrait Names, then locate the dialogue UI's subtitle panel component > Portrait Name field:
If you mean these Portrait Names, then locate the dialogue UI's subtitle panel component > Portrait Name field:
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Change color of NPC name
Is that also for 3d? On a 3d Character the name above their head that appears.
Re: Change color of NPC name
Can you show me a screenshot of the name over the character's head?
Maybe you mean the selector UI?
Maybe you mean the selector UI?
Re: Change color of NPC name
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.
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Change color of NPC name
Thanks, I will attempt to do this the next chance I get to work on my project.