Navigation
API > API/Developer > API/Developer/ToolMenus
Represents a menu in the ToolMenus system.
An instance of this class is returned by basic APIs such as UToolMenus::RegisterMenu and UToolMenus::ExtendMenu.
| Name | UToolMenu |
| Type | class |
| Header File | /Engine/Source/Developer/ToolMenus/Public/ToolMenu.h |
| Include Path | #include "ToolMenu.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UToolMenu : public UToolMenuBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UToolMenuBase → UToolMenu
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UToolMenu() |
ToolMenu.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowToolBarWrapButton | TOptional< bool > | Whether to (ever) allow the wrap button/overflow menu. Defauls to the style. | ToolMenu.h |
|
| bCloseSelfOnly | bool | ToolMenu.h |
|
|
| bPreventCustomization | bool | Prevent menu from being customized | ToolMenu.h |
|
| bSearchable | bool | ToolMenu.h |
|
|
| bSeparateSections | bool | Whether different sections should have separators automatically added between them. | ToolMenu.h |
|
| bShouldCleanupContextOnDestroy | bool | ToolMenu.h |
|
|
| bShouldCloseWindowAfterMenuSelection | bool | ToolMenu.h |
|
|
| bToolBarForceSmallIcons | bool | ToolMenu.h |
|
|
| bToolBarIsFocusable | bool | ToolMenu.h |
|
|
| Context | FToolMenuContext | ToolMenu.h | ||
| MenuName | FName | ToolMenu.h |
|
|
| MenuOwner | FToolMenuOwner | ToolMenu.h |
|
|
| MenuParent | FName | ToolMenu.h |
|
|
| MenuType | EMultiBoxType | ToolMenu.h |
|
|
| ModifyBlockWidgetAfterMake | FMultiBox::FOnModifyBlockWidgetAfterMake | ToolMenu.h | ||
| Sections | TArray< FToolMenuSection > | ToolMenu.h | ||
| StyleName | FName | ToolMenu.h |
|
|
| SubMenuParent | TObjectPtr< const UToolMenu > | ToolMenu.h | ||
| SubMenuSourceEntryName | FName | ToolMenu.h | ||
| TutorialHighlightName | FName | ToolMenu.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bExtendersEnabled | bool | ToolMenu.h | ||
| bIsRegistering | bool | ToolMenu.h | ||
| bRegistered | bool | ToolMenu.h | ||
| MaxHeight | uint32 | ToolMenu.h | ||
| StyleSetName | FName | ToolMenu.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FToolMenuSection & AddDynamicSection
(
const FName SectionName, |
Build a section in a callback. | ToolMenu.h | |
void AddDynamicSectionScript
(
const FName SectionName, |
ToolMenu.h |
|
|
virtual FCustomizedToolMenu * AddMenuCustomization() |
ToolMenu.h | ||
void AddMenuEntry
(
const FName SectionName, |
ToolMenu.h |
|
|
void AddMenuEntryObject
(
UToolMenuEntryScript* InObject |
ToolMenu.h |
|
|
virtual FToolMenuProfile * AddMenuProfile
(
const FName& ProfileName |
ToolMenu.h | ||
FToolMenuSection & AddSection
(
const FName SectionName, |
Add a section to the menu. | ToolMenu.h | |
void AddSectionScript
(
const FName SectionName, |
ToolMenu.h |
|
|
UToolMenu * AddSubMenu
(
const FToolMenuOwner Owner, |
ToolMenu.h | ||
UToolMenu * AddSubMenuScript
(
const FName Owner, |
ToolMenu.h |
|
|
virtual bool ContainsEntry
(
const FName InName |
ToolMenu.h | ||
virtual bool ContainsSection
(
const FName InName |
ToolMenu.h | ||
TContextType * FindContext() |
ToolMenu.h | ||
virtual FCustomizedToolMenu * FindMenuCustomization() |
ToolMenu.h | ||
virtual FToolMenuProfile * FindMenuProfile
(
const FName& ProfileName |
ToolMenu.h | ||
FToolMenuSection & FindOrAddSection
(
const FName SectionName |
Finds an existing section using the provided FName or, if not found, creates a new one and assigns it that FName. | ToolMenu.h | |
FToolMenuSection & FindOrAddSection
(
const FName SectionName, |
Finds an existing section using the provided FName or, if not found, creates a new one and assigns it that FName. | ToolMenu.h | |
FToolMenuSection * FindSection
(
const FName SectionName |
Finds an existing section using the provided FName. | ToolMenu.h | |
virtual FCustomizedToolMenuHierarchy GetMenuCustomizationHierarchy() |
ToolMenu.h | ||
TArray< FName > GetMenuHierarchyNames
(
bool bIncludeSubMenuRoot |
ToolMenu.h | ||
FName GetMenuName() |
ToolMenu.h | ||
virtual FToolMenuProfileHierarchy GetMenuProfileHierarchy
(
const FName& ProfileName |
ToolMenu.h | ||
virtual FName GetSectionName
(
const FName InEntryName |
ToolMenu.h | ||
const ISlateStyle * GetStyleSet() |
ToolMenu.h | ||
TArray< const UToolMenu * > GetSubMenuChain() |
Returns array [Menu, Menu.SubMenuA, Menu.SubMenuB] for Menu.SubMenuB.SubMenuB | ToolMenu.h | |
FString GetSubMenuNamePath() |
Returns "SubMenuC.SubMenuD" for menu "ModuleA.MenuB.SubMenuC.SubMenuD" | ToolMenu.h | |
void InitMenu
(
const FToolMenuOwner Owner, |
ToolMenu.h |
|
|
virtual bool IsEditing() |
ToolMenu.h | ||
bool IsRegistered() |
ToolMenu.h | ||
FReply OnKeyDown
(
const FGeometry& MyGeometry, |
ToolMenu.h | ||
virtual void OnMenuDestroyed() |
ToolMenu.h | ||
void RemoveMenuEntryObject
(
UToolMenuEntryScript* InObject |
ToolMenu.h |
|
|
void RemoveSection
(
const FName SectionName |
ToolMenu.h | ||
void SetExtendersEnabled
(
bool bEnabled |
Set support for extenders | ToolMenu.h | |
void SetMaxHeight
(
uint32 InMaxHeight |
ToolMenu.h | ||
void SetStyleSet
(
const ISlateStyle* InStyleSet |
ToolMenu.h | ||
virtual void UpdateMenuCustomizationFromMultibox
(
const TSharedRef< const FMultiBox >& InMultiBox |
ToolMenu.h |