disconnect navigation to DialogueSystem buttons
Posted: Sun Jan 10, 2021 4:14 pm
Hi,
during the conversation, I pop up a new UI with 3 buttons.
In order to let the event focus to be only on this pop up, I do below.
Its good that the dialoguesystem don't get visible input yet but as I go down the list of 3 buttons then on 4th input, it selects the DialogueSystem's response Menu button (since I initiated pop up during response menu)
Is there any way to safely toggle the DialogueSystem's button/UI during conversation without changing its state too much so I can easily resume to conversation as this pop up UI goes away?
during the conversation, I pop up a new UI with 3 buttons.
In order to let the event focus to be only on this pop up, I do below.
Code: Select all
PixelCrushers.UIPanel.monitorSelection = false;
eventSystemModule.GetComponent<EventSystem>().SetSelectedGameObject(null);
eventSystemModule.GetComponent<EventSystem>().SetSelectedGameObject(firstButtonGameObjectInPopUP);
Is there any way to safely toggle the DialogueSystem's button/UI during conversation without changing its state too much so I can easily resume to conversation as this pop up UI goes away?