Skip to content

Custom Notifications

Notifications are configured on UOperatingSystem via FOperatingSystemNotificationSettings and displayed through your UOperatingSystemWidget implementation.

SettingPurpose
bEnableNotificationsMaster toggle
bPlayNotificationSoundAudio feedback
ToastNotificationTimeSeconds on screen (UMG must implement toast UI)
NotificationSoundDefault / Warning / ErrorUSoundBase 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

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 / Error

The 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).

On UOperatingSystemBaseProgram, enable Create Notification to auto-toast when the program installs from Store or setup.

#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.

Override on your OS widget subclass:

Style to match your game’s OS theme; Theme module colors apply to other widgets via IOperatingSystemThemeInterface.