Navigation
API > API/Developer > API/Developer/ToolMenus
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UToolMenuBase
- UToolMenu
References
| Module | ToolMenus |
| Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenu.h |
| Include | #include "ToolMenu.h" |
Syntax
UCLASS (BlueprintType)
class UToolMenu : public UToolMenuBase
Remarks
Represents a menu in the ToolMenus system.
An instance of this class is returned by basic APIs such as UToolMenus::RegisterMenu and UToolMenus::ExtendMenu.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCloseSelfOnly | ||
| bool | bPreventCustomization | Prevent menu from being customized | |
| bool | bSearchable | ||
| bool | bShouldCleanupContextOnDestroy | ||
| bool | bShouldCloseWindowAfterMenuSelection | ||
| bool | bToolBarForceSmallIcons | ||
| bool | bToolBarIsFocusable | ||
| FToolMenuContext | Context | ||
| FName | MenuName | ||
| FToolMenuOwner | MenuOwner | ||
| FName | MenuParent | ||
| EMultiBoxType | MenuType | ||
| FMultiBox::FOnModifyBlockWidgetAfterMake | ModifyBlockWidgetAfterMake | ||
| TArray< FToolMenuSection > | Sections | ||
| FName | StyleName | ||
| TObjectPtr< const UToolMenu > | SubMenuParent | ||
| FName | SubMenuSourceEntryName | ||
| FName | TutorialHighlightName |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UToolMenu () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FToolMenuSection & | AddDynamicSection
(
const FName SectionName, |
Build a section in a callback. | |
| void | AddDynamicSectionScript
(
const FName SectionName, |
||
| void | AddMenuEntry
(
const FName SectionName, |
||
| void | AddMenuEntryObject
(
UToolMenuEntryScript* InObject |
||
| FToolMenuSection & | AddSection
(
const FName SectionName, |
||
| void | AddSectionScript
(
const FName SectionName, |
||
| UToolMenu * | AddSubMenu
(
const FToolMenuOwner Owner, |
||
| UToolMenu * | |||
| TContextType * | FindContext () |
||
| 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. | |
| 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. | |
| FToolMenuSection * | FindSection
(
const FName SectionName |
Finds an existing section using the provided FName. | |
| TArray< FName > | GetMenuHierarchyNames
(
bool bIncludeSubMenuRoot |
||
| FName | GetMenuName () |
||
| const ISlateStyle * | GetStyleSet () |
||
| TArray< const UToolMenu * > | Returns array [Menu, Menu.SubMenuA, Menu.SubMenuB] for Menu.SubMenuB.SubMenuB | ||
| FString | Returns "SubMenuC.SubMenuD" for menu "ModuleA.MenuB.SubMenuC.SubMenuD" | ||
| void | InitMenu
(
const FToolMenuOwner Owner, |
||
| bool | IsRegistered () |
||
| FReply | |||
| void | RemoveSection
(
const FName SectionName |
||
| void | SetExtendersEnabled
(
bool bEnabled |
Set support for extenders | |
| void | SetMaxHeight
(
uint32 InMaxHeight |
||
| void | SetStyleSet
(
const ISlateStyle* InStyleSet |
Overridden from UToolMenuBase
| Type | Name | Description | |
|---|---|---|---|
| FCustomizedToolMenu * | |||
| FToolMenuProfile * | AddMenuProfile
(
const FName& ProfileName |
||
| bool | ContainsEntry
(
const FName InName |
||
| bool | ContainsSection
(
const FName InName |
||
| FCustomizedToolMenu * | |||
| FToolMenuProfile * | FindMenuProfile
(
const FName& ProfileName |
||
| FCustomizedToolMenuHierarchy | |||
| FToolMenuProfileHierarchy | GetMenuProfileHierarchy
(
const FName& ProfileName |
||
| FName | GetSectionName
(
const FName InEntryName |
||
| bool | IsEditing () |
||
| void | |||
| void | UpdateMenuCustomizationFromMultibox
(
const TSharedRef< const FMultiBox >& InMultiBox |