Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/UCommonActivatableWidgetContaine-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ActivatableWidgetT * AddWidget
(
TSubclassOf< UCommonActivatableWidget > ActivatableWidgetClass |
Adds an activatable widget to the container. See BP_AddWidget for more info. | Widgets/CommonActivatableWidgetContainer.h | |
ActivatableWidgetT * AddWidget
(
TSubclassOf< UCommonActivatableWidget > ActivatableWidgetClass, |
Generates (either creates or pulls from the inactive pool) instance of the given widget class and adds it to the container. | Widgets/CommonActivatableWidgetContainer.h |
AddWidget(TSubclassOf< UCommonActivatableWidget >)
Description
Adds an activatable widget to the container. See BP_AddWidget for more info.
| Name | AddWidget |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Widgets/CommonActivatableWidgetContainer.h |
| Include Path | #include "Widgets/CommonActivatableWidgetContainer.h" |
template<typename ActivatableWidgetT>
ActivatableWidgetT * AddWidget
(
TSubclassOf < UCommonActivatableWidget > ActivatableWidgetClass
)
AddWidget(TSubclassOf< UCommonActivatableWidget >, TFunctionRef< void(ActivatableWidgetT &)>)
Description
Generates (either creates or pulls from the inactive pool) instance of the given widget class and adds it to the container. The provided lambda is called after the instance has been generated and before it is actually added to the container. So if you've got setup to do on the instance before it potentially activates, the lambda is the place to do it.
| Name | AddWidget |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Widgets/CommonActivatableWidgetContainer.h |
| Include Path | #include "Widgets/CommonActivatableWidgetContainer.h" |
template<typename ActivatableWidgetT>
ActivatableWidgetT * AddWidget
(
TSubclassOf < UCommonActivatableWidget > ActivatableWidgetClass,
TFunctionRef < void> InstanceInitFunc
)