[Solved]Displaying conversant's name in a new UI text box

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Goerilf4
Posts: 2
Joined: Wed Nov 11, 2020 9:53 am

[Solved]Displaying conversant's name in a new UI text box

Post by Goerilf4 »

The default VN UI prefab has three portrait's each containing names and images of a character. I was wondering how to update a new text box that displays the conversants name. In other words a text box that only shows the name of the person currently speaking.

Should I be looking at how to write the conversant lua variable to a StandardUISubtitlePanel script?
Any help is appreciated. :D
Last edited by Goerilf4 on Wed Nov 11, 2020 11:58 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: [Help] Displaying conversant's name in a new UI text box

Post by Tony Li »

Hi,

No need to do any scripting. Remove all but one Portrait Name. Move it outside of the subtitle panel GameObject. Then assign it to all three subtitle panels (or however many subtitle panels you've set up) so they can all share it.

vnSamePortraitName.png
vnSamePortraitName.png (74.69 KiB) Viewed 133 times
Goerilf4
Posts: 2
Joined: Wed Nov 11, 2020 9:53 am

Re: [Solved]Displaying conversant's name in a new UI text box

Post by Goerilf4 »

Nice! Thank you for the help.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: [Solved]Displaying conversant's name in a new UI text box

Post by Tony Li »

Happy to help!
Post Reply