Page 1 of 1

[Bug] dialogueUI.Open() doesn't open my responses UI

Posted: Wed Mar 17, 2021 1:50 pm
by ProvencalG
Hi.
I have an issue where I close the dialogue UI in my script using

Code: Select all

DialogueManager.dialogueUI.Close();
Then later I reopen it. But it doesn't open.

Code: Select all

IEnumerator OpenAtEndOfFrame()
    {
        yield return new WaitForEndOfFrame();
        DialogueManager.dialogueUI.Open();
    }
The game objects are re enabled in the Hierarchy view but nothing on screen.
How can I fix this? Thanks.

Re: [Bug] dialogueUI.Open() doesn't open my responses UI

Posted: Wed Mar 17, 2021 1:58 pm
by Tony Li
Hi,

By manually calling Close() during a conversation, you're leaving the panels' animators in a bad state.

Use the SetDialoguePanel() sequencer command if possible. Or use DialogueManager.instance.SetDialoguePanel() in C#.

Re: [Bug] dialogueUI.Open() doesn't open my responses UI

Posted: Thu Mar 18, 2021 9:28 am
by ProvencalG
Oh ok, that explains everything. Thanks, it works perfectly!

Re: [Bug] dialogueUI.Open() doesn't open my responses UI

Posted: Thu Mar 18, 2021 10:17 am
by Tony Li
Glad to help!