Navigation
API > API/Developer > API/Developer/ToolMenus > API/Developer/ToolMenus/UToolMenu
Description
Build a section in a callback.
The callback is passed a sandboxed empty menu to add as many sections as desired. Sections are merged into the final menu afterwards.
| Name | AddDynamicSection |
| Type | function |
| Header File | /Engine/Source/Developer/ToolMenus/Public/ToolMenu.h |
| Include Path | #include "ToolMenu.h" |
| Source | /Engine/Source/Developer/ToolMenus/Private/ToolMenu.cpp |
FToolMenuSection & AddDynamicSection
(
const FName SectionName,
const FNewSectionConstructChoice & InConstruct,
const FToolMenuInsert InPosition
)
A reference to the created section.
Parameters
| Name | Remarks |
|---|---|
| SectionName | The FName of the section the callback will build. |
| InConstruct | The callback that will be run to build the menu as the user opens it. |
| InPosition | The position of the section within its parent menu. |