Visual Novel - Select Subtitle Panel for whole conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Cussa
Posts: 22
Joined: Sat Jun 03, 2023 3:50 am

Visual Novel - Select Subtitle Panel for whole conversation

Post by Cussa »

Hello,

I am developing a game here and I am using the Visual Novel Framework.

I have a situation where in one of my conversations, I want a NPC to use the Subtitle panel 2, instead of the default for NPCs (0). I saw that I could add the mark-up to the conversation to have it show in the panel, but that means that I would need to add it to every dialogue entry in this conversation.

I know I can create a GameObject and add the Dialogue Actor script on it to define the Subtitle Panel, but that would mean that he will use that panel for all the conversations, not only for this one.

Is there any way I can set a Subtitle Panel for a character in a whole conversation?

Many Thanks

Cussa
User avatar
Tony Li
Posts: 20769
Joined: Thu Jul 18, 2013 1:27 pm

Re: Visual Novel - Select Subtitle Panel for whole conversation

Post by Tony Li »

Hi,

Yes. Create an empty GameObject for the character if it doesn't already have one. Add a Dialogue Actor component to the character's GameObject. Set the Actor dropdown, then set Dialogue UI Settings > Subtitle Panel Number to the panel number you want the character to use.

Alternatively, use the SetPanel() sequencer command in the conversation's first dialogue entry.
Cussa
Posts: 22
Joined: Sat Jun 03, 2023 3:50 am

Re: Visual Novel - Select Subtitle Panel for whole conversation

Post by Cussa »

Thanks. The SetPanel was probably what I was looking for.
User avatar
Tony Li
Posts: 20769
Joined: Thu Jul 18, 2013 1:27 pm

Re: Visual Novel - Select Subtitle Panel for whole conversation

Post by Tony Li »

Glad to help!
Post Reply