NotificationSettings struct
Last updated
Last updated
NotificationSettings struct has very basic settings that will affect how the notification will behave.
You can change the settings from the class defaults in the user widget editor, or override those settings when creating a new widget in code.
Persistent - Will ignore the display duration and wait for you to manually dismiss the notification (using RemoveFromParent
native function).
Display Duration - Determines how much time this notification should be displayed.
Priority - What is the priority of this notification? Higher priority will have the advantage of being displayed next.
Can be interrupted - When a new notification is added, this widget can be immediately dismissed to show the new notification that just entered.
One Per Class - This option will make sure that only one of these notifications can be added to the queue. For example: if a player just leveled up 3 times at once, you only want to show 1 level-up notification but you create the notification as soon as the player leveled up, this will make sure that only 1 notification will be displayed.