Navigation
Unreal Engine C++ API Reference > 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 |
static void GetAllWidgetsWithInterface
&40;
UObject &42; WorldContextObject,
TArray< UUserWidget &42; > & FoundWidgets,
TSubclassOf< UInterface > Interface,
bool TopLevelOnly
&41;
Remarks
Find all widgets in the world with the specified interface. This is a slow operation, use with caution e.g. do not use every frame.
Parameters
Name | Description |
---|---|
Interface | The interface to find. Must be specified or result array will be empty. |
FoundWidgets | Output array of widgets that implement the specified interface. |
TopLevelOnly | Only the widgets that are direct children of the viewport will be returned. |