Navigation
API > API/Developer > API/Developer/ToolMenus
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UToolMenuContextBase
- UToolMenuWidgetCollectionContext
References
Module | ToolMenus |
Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenuWidgetCollectionContext.h |
Include | #include "ToolMenuWidgetCollectionContext.h" |
Syntax
UCLASS (MinimalAPI)
class UToolMenuWidgetCollectionContext : public UToolMenuContextBase
Remarks
Context class containing a collection of widgets that can be added for later retrieval.
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddWidget
(
const TSharedRef< SWidget >& Widget |
Add a widget to this context for later retrieval. |
![]() ![]() |
void | EnumerateWidgets
(
const TFunctionRef< bool(const TSharedPtr< SWidget >&Widget)>& Callback |
Enumerate all the previously added widgets. |
![]() ![]() |
TSharedPtr< WidgetType > | FindWidget () |
Find a previously added widget. |
![]() ![]() |
UToolMenuWidgetCollectionContext * | Get
(
FToolMenuContext& Context, |
Get the widget collection context object from the parameter context. |