Custom Notifications
Notifications are configured on UOperatingSystem via FOperatingSystemNotificationSettings and displayed through your UOperatingSystemWidget implementation.
| Setting | Purpose |
|---|---|
| bEnableNotifications | Master toggle |
| bPlayNotificationSound | Audio feedback |
| ToastNotificationTime | Seconds on screen (UMG must implement toast UI) |
| NotificationSoundDefault / Warning / Error | USoundBase assets |
sequenceDiagram participant Prog as UOperatingSystemBaseProgram participant OS as UOperatingSystem participant Widget as UOperatingSystemWidget Prog->>OS: SendNotification(title, message, type) OS->>Widget: On Notification Received event Widget->>Widget: Show toast + NotificationSound
Blueprint — send from a program
Section titled “Blueprint — send from a program”When your program installs, completes a task, or receives mail:
Get Operating System → Send Notification Title: "Download complete" Message: "Patch 1.2 ready to install" Type: Info / Warning / ErrorThe exact node name matches Send Notification on UOperatingSystem — search with the OS reference pinned.
Implement On Notification Received on your OS widget Blueprint to animate the toast (bundled WBP_OS provides a starting layout).
Program install notifications
Section titled “Program install notifications”On UOperatingSystemBaseProgram, enable Create Notification to auto-toast when the program installs from Store or setup.
C++ — trigger notification
Section titled “C++ — trigger notification”#include "Core/OperatingSystem.h"
void UMyProgram::OnTaskComplete(){ if (UOperatingSystem* OS = GetOperatingSystem()) { OS->SendNotification( FText::FromString(TEXT("Task complete")), FText::FromString(TEXT("All files synced.")), EOperatingSystemNotificationType::Info); }}Use the enum and method signatures from UOperatingSystem API for your version.
Custom toast UI
Section titled “Custom toast UI”Override on your OS widget subclass:
- On Notification Received — Blueprint implementable event on UOperatingSystemWidget
Style to match your game’s OS theme; Theme module colors apply to other widgets via IOperatingSystemThemeInterface.