Navigation
API > API/Developer > API/Developer/ToolMenus > API/Developer/ToolMenus/UToolMenu
References
| Module | ToolMenus |
| Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenu.h |
| Include | #include "ToolMenu.h" |
| Source | /Engine/Source/Developer/ToolMenus/Private/ToolMenu.cpp |
FToolMenuSection & AddDynamicSection
(
const FName SectionName,
const FNewSectionConstructChoice & InConstruct,
const FToolMenuInsert InPosition
)
Remarks
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. A reference to the created section.
Parameters
| Name | Description |
|---|---|
| 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. |