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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ProvencalG
Posts: 24
Joined: Fri Mar 13, 2020 1:30 pm

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

Post 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.
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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#.
ProvencalG
Posts: 24
Joined: Fri Mar 13, 2020 1:30 pm

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

Post by ProvencalG »

Oh ok, that explains everything. Thanks, it works perfectly!
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply