Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/FWidgetBlueprintOperationUtils
Description
Depth-first walk of a widget tree. Calls Visitor once per widget in order. Handles panel children and named slot content. Cycle-safe.
| Name | WalkWidgetTree |
| Type | function |
| Header File | /Engine/Source/Editor/UMGEditor/Public/WidgetBlueprintOperationUtils.h |
| Include Path | #include "WidgetBlueprintOperationUtils.h" |
| Source | /Engine/Source/Editor/UMGEditor/Private/WidgetBlueprintOperationUtils.cpp |
static void WalkWidgetTree
(
const UWidgetBlueprint * WidgetBlueprint,
const UWidget * StartWidget,
int32 MaxDepth,
TFunctionRef < void, int32Depth , FName SlotName)> Visitor
)
Parameters
| Name | Remarks |
|---|---|
| WidgetBlueprint | Blueprint to traverse. |
| StartWidget | nullptr = walk from root widget. |
| MaxDepth | 1 = no limit; 0 = StartWidget only; N = N levels of descent. |
| Visitor | Called per widget: (Widget, Depth, SlotName). Depth is 0 at StartWidget. SlotName is NAME_None for panel children; the named slot name for named slot content. |