UPanelWidget::AddChild

Adds a new child widget to the container.

Windows
MacOS
Linux

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

Syntax

UPanelSlot * AddChild
(
    UWidget * Content
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss