Add actor name to bubble

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

Add actor name to bubble

Post by pmand »

I would like to add the actor's name to the top center of each bubble.
How can I do this?
Clipboard01.jpg
Clipboard01.jpg (6.33 KiB) Viewed 289 times
User avatar
Tony Li
Posts: 22134
Joined: Thu Jul 18, 2013 1:27 pm

Re: Add actor name to bubble

Post by Tony Li »

Hi,

That would be the subtitle panel's Portrait Name. Just add a Text or TextMeshProGUI component to the bubble, and assign it to the subtitle panel's Portrait Name field. If you're using TextMesh Pro and haven't enabled the Dialogue System's support for it yet, see here.

If you're unsure how to position the Portrait Name at the top center, I recommend the Working With UI In Unity tutorial.
pmand
Posts: 15
Joined: Wed Mar 01, 2023 1:09 pm

Re: Add actor name to bubble

Post by pmand »

Awesome! Thanks for the help!
User avatar
Tony Li
Posts: 22134
Joined: Thu Jul 18, 2013 1:27 pm

Re: Add actor name to bubble

Post by Tony Li »

Glad to help!
Post Reply