Page 1 of 1

Visual Novel - Select Subtitle Panel for whole conversation

Posted: Wed Apr 03, 2024 6:13 am
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

Re: Visual Novel - Select Subtitle Panel for whole conversation

Posted: Wed Apr 03, 2024 8:17 am
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.

Re: Visual Novel - Select Subtitle Panel for whole conversation

Posted: Wed Apr 03, 2024 9:31 am
by Cussa
Thanks. The SetPanel was probably what I was looking for.

Re: Visual Novel - Select Subtitle Panel for whole conversation

Posted: Wed Apr 03, 2024 9:36 am
by Tony Li
Glad to help!