Page 1 of 1

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

Posted: Sat Dec 26, 2020 9:45 am
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); 

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

Posted: Sat Dec 26, 2020 10:12 am
by Tony Li
Hi,

Set the character's Dialogue Actor component. Example:

Code: Select all

GetComponent<DialogueActor>().standardDialogueUISettings.subtitlePanelNumber = SubtitlePanelNumber.Panel3;

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

Posted: Sat Dec 26, 2020 10:13 am
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

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

Posted: Sat Dec 26, 2020 10:58 am
by Tony Li
That's fine if you don't have a GameObject with a Dialogue Actor component.