Page 1 of 1

Check if an alert is currently showing.

Posted: Mon Jun 14, 2021 12:16 am
by OlofGameDev
I need a way to check if an alert is currently open. Something that works the same way as this code for checking if a conversation is open:

Code: Select all

(DialogueManager.dialogueUI as StandardDialogueUI).isOpen
Cheers!

Re: Check if an alert is currently showing.

Posted: Mon Jun 14, 2021 8:16 am
by Tony Li
Hi,

You can check:

Code: Select all

(DialogueManager.dialogueUI as StandardDialogueUI).alertControls.isVisible

Re: Check if an alert is currently showing.

Posted: Mon Jun 14, 2021 11:17 pm
by OlofGameDev
Thanks!