Alert Panels.
-
- Posts: 5
- Joined: Thu May 11, 2023 9:44 am
Alert Panels.
Hello, How do I permanently show the Alert message once it has been triggered in the script. Currently, my panel disappears after the conversation ends. Thanks!
Re: Alert Panels.
Hi,
The alert panel will normally stay visible for a duration based on the text length, or a specific number of seconds if you’ve specified a duration when you triggered the alert message.
A quick way to make it stay longer is to specify a longer duration or set the Dialogue Manager’s Alert Settings > Min Subtitle Settings to a very high value such as 99999.
Alternatively, you can make a subclass of StandardDialogueUI and override the HideAlert method to not hide the alert panel. Then use this subclass in place of StandardDialogueUI on your dialogue UI.
The alert panel will normally stay visible for a duration based on the text length, or a specific number of seconds if you’ve specified a duration when you triggered the alert message.
A quick way to make it stay longer is to specify a longer duration or set the Dialogue Manager’s Alert Settings > Min Subtitle Settings to a very high value such as 99999.
Alternatively, you can make a subclass of StandardDialogueUI and override the HideAlert method to not hide the alert panel. Then use this subclass in place of StandardDialogueUI on your dialogue UI.