RapyutaSimulationPlugins
RRUIWidgetComponent.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 #include "CoreMinimal.h"
16 
17 #include "GameFramework/Actor.h"
18 
19 
20 
21 #include "RRUIWidgetComponent.generated.h"
22 
23 
24 
38 class RAPYUTASIMULATIONPLUGINS_API URRUIWidgetComponent : public UWidgetComponent
39 
40 {
41 
42 
43 
44 public:
45 
47 
48 
49 
51 
52 
57  TSubclassOf<UUserWidget> UIUserWidgetClass;
58 
59 
60 
61 
66  FIntPoint UIWidgetSize = FIntPoint(500.f, 50.f);
67 
68 
69 
70 
75  void Init();
76 
77 
78 
92  void SetTooltipText(const FString& InTooltip);
93 
94 
95 
109  void SetTooltipVisible(bool bInTooltipVisible);
110 
111 
112 
126  void SetUIWidgetVisible(bool bInWidgetVisible);
127 
128 
129 
130 
136 
137  {
138 
139  return UIUserWidget;
140 
141  }
142 
143 
144 
145 private:
146 
148 
149  TObjectPtr<URRUserWidget> UIUserWidget = nullptr;
150 
151 };
152 
URRUIWidgetComponent::UIUserWidgetClass
TSubclassOf< UUserWidget > UIUserWidgetClass
Widget class.
Definition: RRUIWidgetComponent.h:57
URRUserWidget
Base user widget, inheriting from UUserWidget
Definition: RRUserWidget.h:52
URRUIWidgetComponent::GetRRWidget
URRUserWidget * GetRRWidget() const
Definition: RRUIWidgetComponent.h:135
URRUIWidgetComponent
Definition: RRUIWidgetComponent.h:38