UWidgetTree::FindChildIndex

Determines the child index of the given ParentWidget that the given ChildWidget ultimately occupies, accounting for nesting

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 int32 FindChildIndex
(
    const UPanelWidget * ParentWidget,
    const UWidget * ChildWidget
)

Remarks

Determines the child index of the given ParentWidget that the given ChildWidget ultimately occupies, accounting for nesting

Returns

The child slot index within ParentWidget that ChildWidget ultimately occupies (INDEX_NONE if ChildWidget is not within ParentWidget at any level)

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