10 PrimaryActorTick.bCanEverTick =
false;
24 if (TextureRenderTarget)
46 Super::EndPlay(EndPlayReason);
FOnWindowClosed OnWindowClosedDelegate
void SetupTextureRenderTarget(UTextureRenderTarget2D *TextureRenderTarget)
void AddWidgetToWindow(UWidget *WidgetToAdd)
virtual void BeginPlay() override
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
AWindowActor(const FObjectInitializer &ObjectInitializer)
void ResizeWindow(int Width=1280, int Height=720)
void OnWindowClosed(const TSharedRef< SWindow > &Window)
void RemoveWidgetFromWindow(UWidget *WidgetToAdd)
TSharedPtr< FUnrealWindow > UnrealWindow
void SetupWindow(int Width=1280, int Height=720, FString Title="Window", UTextureRenderTarget2D *TextureRenderTarget=nullptr)