Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/FWidgetBlueprintOperationUtils
Description
Returns the maximum depth of the widget tree from StartWidget. A leaf = 0; a node with one level of children = 1. Returns -1 if WidgetBlueprint or its WidgetTree is null.
| Name | ComputeWidgetTreeDepth |
| 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 int32 ComputeWidgetTreeDepth
(
const UWidgetBlueprint * WidgetBlueprint,
const UWidget * StartWidget
)