UWidgetBlueprintLibrary::GetAllWidgetsOfClass

Find all widgets of a certain class.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h

Include

#include "Blueprint/WidgetBlueprintLibrary.h"

Source

/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp

Syntax

static void GetAllWidgetsOfClass
(
    UObject * WorldContextObject,
    TArray< UUserWidget * > & FoundWidgets,
    TSubclassOf< UUserWidget > WidgetClass,
    bool TopLevelOnly
)

Remarks

Find all widgets of a certain class.

Parameters

Parameter

Description

FoundWidgets

The widgets that were found matching the filter.

WidgetClass

The widget class to filter by.

TopLevelOnly

Only the widgets that are direct children of the viewport will be returned.