Hiding dialogue UI during dialogue process
Posted: Sat Apr 29, 2017 10:38 am
Hi,
I want to avoid splitting conversation when there is a simple cinematic sequence in dialogue. So I was thinking of adding a dialogue node, during which all the dialogue UI would be hidden, so I could run my story sequences and then resume the normal dialogue flow. (This saves from having to use many variables to start/end conversations)
I thought about naming one character "Sequence" and whenever this character is "Speaking" during dialogue tree to hide UI. So I made something like this:
is this optimal way to go about this? I noticed if I'm using this along with dialogue template switching code from dialogue system extras, the new panel will still play slide in animation before closing.
Thanks
I want to avoid splitting conversation when there is a simple cinematic sequence in dialogue. So I was thinking of adding a dialogue node, during which all the dialogue UI would be hidden, so I could run my story sequences and then resume the normal dialogue flow. (This saves from having to use many variables to start/end conversations)
I thought about naming one character "Sequence" and whenever this character is "Speaking" during dialogue tree to hide UI. So I made something like this:
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
if (subtitle.speakerInfo.Name == "Sequence")
{
DialogueManager.DialogueUI.Close();
}
else
{
DialogueManager.DialogueUI.Open();
}
}
Thanks