UPanelWidget::ReplaceChildAt

Swaps the widget out of the slot at the given index, replacing it with a different widget.

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

bool ReplaceChildAt
(
    int32 Index,
    UWidget * Content
)

Remarks

Swaps the widget out of the slot at the given index, replacing it with a different widget.

Returns

true if the index existed and the child could be replaced.

Parameters

Parameter

Description

Index

the index at which to replace the child content with this new Content.

Content

The content to replace the child with.

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