Check if an alert is currently showing.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OlofGameDev
Posts: 5
Joined: Wed Jun 09, 2021 7:24 am

Check if an alert is currently showing.

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

Re: Check if an alert is currently showing.

Post by Tony Li »

Hi,

You can check:

Code: Select all

(DialogueManager.dialogueUI as StandardDialogueUI).alertControls.isVisible
OlofGameDev
Posts: 5
Joined: Wed Jun 09, 2021 7:24 am

Re: Check if an alert is currently showing.

Post by OlofGameDev »

Thanks!
Post Reply