UWidgetTree::ForEachWidget

Iterates through all widgets including widgets contained in named slots, other than investigating named slots, this code does not dive into foreign WidgetTrees, as would exist inside another user widget.

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

void ForEachWidget
(
    TFunctionRef< void *)> Predicate
) const

Remarks

Iterates through all widgets including widgets contained in named slots, other than investigating named slots, this code does not dive into foreign WidgetTrees, as would exist inside another user widget.