Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
HologramWidgetScreen.h
이 파일의 문서화 페이지로 가기
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "HologramWidgetScreen.generated.h"
7
9class UTextureRenderTarget2D;
10class UUserWidget;
11
12UCLASS(Blueprintable)
13class CK_UE_API AHologramWidgetScreen : public AHologramScreen
14{
15 GENERATED_BODY()
16
17public:
19 virtual void OnConstruction(const FTransform& Transform) override;
20
21 // 반환된 위젯의 Blueprint 함수를 호출해 채팅·문구를 갱신한다.
22 UFUNCTION(BlueprintPure, Category = "Hologram Widget Screen")
23 UUserWidget* GetScreenWidget() const;
24
25protected:
26 virtual void BeginPlay() override;
27 virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
28
29 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Hologram Widget Screen")
30 TObjectPtr<UHologramWidgetSourceComponent> WidgetSource;
31
32 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Hologram Widget Screen")
33 TSubclassOf<UUserWidget> ScreenWidgetClass;
34
35 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Hologram Widget Screen", meta = (ClampMin = "1"))
36 FIntPoint WidgetDrawSize = FIntPoint(1024, 512);
37
38private:
39 void ConfigureWidgetSource();
40 void BindRenderTarget(UTextureRenderTarget2D* RenderTarget);
41 bool HasWidgetMaterial() const;
42};
Definition HologramScreen.h:19
Definition HologramWidgetScreen.h:14
Definition HologramWidgetSourceComponent.h:15