Navigation
API > API/Developer > API/Developer/ToolMenus > API/Developer/ToolMenus/UToolMenuWidgetCollectionContext
References
| Module | ToolMenus |
| Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenuWidgetCollectionContext.h |
| Include | #include "ToolMenuWidgetCollectionContext.h" |
template<typename WidgetType>
TSharedPtr < WidgetType > FindWidget() const
Remarks
Find a previously added widget. Uses the widget's type via WidgetType::StaticWidgetClass.
This requires that the widget implements SLATE_DECLARE_WIDGET in its class definition.
This function performs an exact match on the widget type - there is no inheritance checking. The widget, if found. A null pointer otherwise.
Parameters
| Name | Description |
|---|---|
| WidgetType | The type of widget to find. |