UWidgetBlueprintLibrary::GetAllWidgetsOfClass

Find all widgets of a certain class.

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.

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