UWidgetTree::FindWidgetChild

Searches recursively through the children of the given ParentWidget to find a child widget of the given name.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetTree.h

Include

#include "Blueprint/WidgetTree.h"

Source

/Engine/Source/Runtime/UMG/Private/WidgetTree.cpp

Syntax

static UWidget * FindWidgetChild
(
    UPanelWidget * ParentWidget,
    FName ChildWidgetName,
    int32 & OutChildIndex
)

Remarks

Searches recursively through the children of the given ParentWidget to find a child widget of the given name. If successful, also gets the index the child ultimately occupies within the starting ParentWidget (INDEX_NONE otherwise)