setting the specific panel for actor permanently. without calling SetPanel("NameA", 3) on conversation start

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

setting the specific panel for actor permanently. without calling SetPanel("NameA", 3) on conversation start

Post by fkkcloud »

Hi,

I hope to just set this permanently since I am using the panel 3 for that specific actor only and wont change.
Is there any possible way to just set it permanently in the script?
So I don't have to put it in start of every single Conversation?

Like, putting it in OnConversationStart C# script?

Code: Select all

OnConversationStart() { DialogueSystem.SetPanel("ActorName", 3); 
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: setting the specific panel for actor permanently. without calling SetPanel("NameA", 3) on conversation start

Post by Tony Li »

Hi,

Set the character's Dialogue Actor component. Example:

Code: Select all

GetComponent<DialogueActor>().standardDialogueUISettings.subtitlePanelNumber = SubtitlePanelNumber.Panel3;
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: setting the specific panel for actor permanently. without calling SetPanel("NameA", 3) on conversation start

Post by fkkcloud »

I did find something like this - but let me know if this is proper way?
I am setting this everytime I start conversation btw

Code: Select all

DialogueManager.PlaySequence("SetPanel(NARRATOR, 4);");
Since I didn't have the DialogueActor game object in the game
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: setting the specific panel for actor permanently. without calling SetPanel("NameA", 3) on conversation start

Post by Tony Li »

That's fine if you don't have a GameObject with a Dialogue Actor component.
Post Reply