Navigation
API > API/Developer > API/Developer/ToolMenus > API/Developer/ToolMenus/FToolMenuSection > API/Developer/ToolMenus/FToolMenuSection/AddMenuEntry
References
| Module | ToolMenus |
| Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenuSection.h |
| Include | #include "ToolMenuSection.h" |
| Source | /Engine/Source/Developer/ToolMenus/Private/ToolMenuSection.cpp |
FToolMenuEntry & AddMenuEntry
(
const FName InName,
const TAttribute < FText > & InLabel,
const TAttribute < FText > & InToolTip,
const TAttribute < FSlateIcon > & InIcon,
const FToolUIActionChoice & InAction,
const EUserInterfaceActionType UserInterfaceActionType,
const FName InTutorialHighlightName
)
Remarks
Add a menu entry to this section. A reference to the added menu entry.
Parameters
| Name | Description |
|---|---|
| InName | The FName of the added entry used to identify it. |
| InLabel | The user-visible label of this entry. |
| InToolTip | The user-visible tooltip of this entry. |
| InIcon | The user-visible icon of this entry. |
| InAction | The delegates to call to make this entry interactive. Supports more than just on-click delegates. See FToolUIActionChoice for more information. |
| UserInterfaceActionType | The type of user interface element (such as a checkbox) to use for this entry. See EUserInterfaceActionType for more options. |