Hey guys!
Could anyone tells me how can I show Player or Actor's name during the lines, please?
How can I show player's name during the lines?
Re: How can I show player's name during the lines?
Hi! There are a few ways:
1. Use a Dialogue UI whose subtitle panels have Portrait Name fields. Example: In the Demo, when you talk to the NPCs, their name appears in the subtitle panel along with their dialogue text.
2. Or inspect the subtitle panel(s) and tick the Add Speaker Name checkbox. This will prepend the speaker's name to the front of the dialogue text.
3. Or, if you want to show the player's name in the dialogue text itself, use the [var=variable] tag, such as:
1. Use a Dialogue UI whose subtitle panels have Portrait Name fields. Example: In the Demo, when you talk to the NPCs, their name appears in the subtitle panel along with their dialogue text.
2. Or inspect the subtitle panel(s) and tick the Add Speaker Name checkbox. This will prepend the speaker's name to the front of the dialogue text.
3. Or, if you want to show the player's name in the dialogue text itself, use the [var=variable] tag, such as:
- Dialogue Text: "Hello, [var=Actor]. How are you?"
- Dialogue Text: "Hello, [lua(Actor["Player"].Display_Name)]. How are you?"
Re: How can I show player's name during the lines?
Awww! thanks for your help! point 3 is exactly what I need.
your system is the best dialog system of Unity!
your system is the best dialog system of Unity!
Re: How can I show player's name during the lines?
Thanks! Glad to help!