UWidgetTree::FindChildIndex

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

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 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)