Updating alert message while it is shown

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Updating alert message while it is shown

Post by mandi »

Hi Tony,
is it possible to update the message shown via ShowAlert while it is still being displayed? I know I can increase the frequency check for alert value, but that does not seem to influence the message being displayed.
Best!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Updating alert message while it is shown

Post by Tony Li »

Hi,

If you're using Unity UI, your dialogue UI's Alert section has a checkbox named Queue Alerts. If this is ticked, the Dialogue System will wait for each alert message to be shown for its specified duration before showing the next alert message. If this is UNticked, new ShowAlerts will immediately replace current ones.

The check duration in the Dialogue Manager's Display Settings only affects the frequency at which the Dialogue System checks for assignments to the "Alert" Lua variable -- for example:

Code: Select all

Variable["Alert"] = "Hello, world."
If that doesn't help, can you please give me more information about how you're triggering/invoking ShowAlert, and what kind of UI you're using?
mandi
Posts: 77
Joined: Wed Sep 16, 2015 4:05 am

Re: Updating alert message while it is shown

Post by mandi »

Hi Tony,
thank you very much, I will let you know if I have more questions!
Best
Post Reply