Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components > API/Runtime/UMG/Components/UPanelWidget
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 |
virtual bool ReplaceChild
&40;
UWidget &42; CurrentChild,
UWidget &42; NewChild
&41;
Remarks
Swaps the child widget out of the slot, and replaces it with the new child widget. true if the CurrentChild was found and the swap occurred, otherwise false.
Parameters
| Name | Description |
|---|---|
| CurrentChild | The existing child widget being removed. |
| NewChild | The new child widget being inserted. |