Current Panel of the Current Dialog
Current Panel of the Current Dialog
is there a default way to get the current panel of the current dialog? I can only see "SetPanel" available, I need a condition around is conversation active on a specific panel
Re: Current Panel of the Current Dialog
Hi,
Yes, here's an example:
If it's outside of OnConversationLine, you can use DialogueManager.currentConversationState.subtitle.
Yes, here's an example:
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
DialogueActor dialogueActor;
var panel = DialogueManager.standardDialogueUI.conversationUIElements.standardSubtitleControls.GetPanel(subtitle, out dialogueActor);
Debug.Log($"Will show subtitle '{subtitle.formattedText.text}' in panel {panel}", panel);
}