Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components > API/Runtime/UMG/Components/UPanelWidget > API/Runtime/UMG/Components/UPanelWidget/AddChild
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/PanelWidget.h |
| Include | #include "Components/PanelWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/PanelWidget.cpp |
UPanelSlot * AddChild
(
UWidget * Content,
UPanelSlot * SlotTemplate
)
Remarks
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.