11#include "UObject/Object.h"
13#include "GameFramework/PlayerController.h"
14#include "Engine/LocalPlayer.h"
15#include "Engine/GameInstance.h"
16#include "Blueprint/UserWidget.h"
17#include "Engine/Engine.h"
18#include "Engine/World.h"
21#define DIALOGWIDGET_PATH TEXT("/Game/CustomContents/UI/WBP_Dialog.WBP_Dialog_C")
46 Super::Deinitialize();
51 if (World ==
nullptr || !World->IsGameWorld())
71 ULocalPlayer* LocalPlayer = GetLocalPlayer();
72 if (LocalPlayer ==
nullptr)
75 APlayerController* PC = LocalPlayer->GetPlayerController(World);
92 if (Message.IsEmpty())
95 UWorld* World = GetWorld();
107 UWorld* World = GetWorld();
FComponentHelper 구조체를 선언합니다.
#define DIALOGWIDGET_PATH
UDialogManager 클래스를 선언합니다.
void HideToastImmediately()
활성 토스트 메시지를 즉시 숨깁니다.
void EnsureWidgetForWorld(UWorld *World)
현재 월드에 위젯이 없으면 생성하고 뷰포트에 부착합니다.
TSubclassOf< class UDialogWidget > DialogWidgetClass
void ShowToast(const FString &Message)
TObjectPtr< class UDialogWidget > DialogWidget
virtual void Deinitialize() override
static const int32 ToastManager
static T * LoadAsset(const TCHAR *Path)