UPanelWidget::AddChild

Adds a new child widget to the container.

Choose your operating system:

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.