UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"black background"
// Create a black background widget FString WidgetPath = TEXT("/Game/UI/Widgets/MyBlackBackgroundWidget.MyBlackBackgroundWidget"); UUserWidget* BlackBackgroundWidget = CreateWidget<UUserWidget>(GetWorld(), LoadClass<UUserWidget>(nullptr, *WidgetPath)); // Add the widget to the viewport if (BlackBackgroundWidget) { BlackBackgroundWidget->AddToViewport(); }