Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UPanelWidget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPanelSlot * AddChild
(
UWidget* Content |
Adds a new child widget to the container. | Components/PanelWidget.h |
|
UPanelSlot * AddChild
(
UWidget* Content, |
Adds a new child widget to the container. | Components/PanelWidget.h |
AddChild(UWidget *)
Description
Adds a new child widget to the container. Returns the base slot type, requires casting to turn it into the type specific to the container.
| Name | AddChild |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/PanelWidget.h |
| Include Path | #include "Components/PanelWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/PanelWidget.cpp |
UFUNCTION (BlueprintCallable, Category="Widget|Panel")
UPanelSlot * AddChild
(
UWidget * Content
)
AddChild(UWidget , UPanelSlot )
Description
Adds a new child widget to the container. Creates the slot using the template passed to it. Note that a new UPanelSlot object is created and the SlotTemplate is only used as a template.
| Name | AddChild |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/PanelWidget.h |
| Include Path | #include "Components/PanelWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/PanelWidget.cpp |
UPanelSlot * AddChild
(
UWidget * Content,
UPanelSlot * SlotTemplate
)