Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UWidgetBlueprintLibrary
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 |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Widget",
Meta=(WorldContext="WorldContextObject", DeterminesOutputType="WidgetClass", DynamicOutputParam="FoundWidgets"))
static void GetAllWidgetsOfClass
(
UObject * WorldContextObject,
TArray< UUserWidget * > & FoundWidgets,
TSubclassOf< UUserWidget > WidgetClass,
bool TopLevelOnly
)
Remarks
Find all widgets of a certain class.
Parameters
| Name | 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. |