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?