Navigation
API > API/Plugins > API/Plugins/RigVMEditor > API/Plugins/RigVMEditor/FRigVMActionMenuBuilder
Description
Some action menus require multiple sections. One option is to create multiple FRigVMActionMenuBuilders and append them together, but that can be unperformant (each builder will run through the entire database separately)... This method provides an alternative, where you can specify a separate filter/heading/ordering for a sub-section of the menu.
| Name | AddMenuSection |
| Type | function |
| Header File | /Engine/Plugins/Runtime/RigVM/Source/RigVMEditor/Public/Editor/RigVMActionMenuBuilder.h |
| Include Path | #include "Editor/RigVMActionMenuBuilder.h" |
| Source | /Engine/Plugins/Runtime/RigVM/Source/RigVMEditor/Private/Editor/RigVMActionMenuBuilder.cpp |
void AddMenuSection
(
FBlueprintActionFilter const & Filter,
FText const & Heading
)
Parameters
| Name | Remarks |
|---|---|
| Filter | The filter you want applied to this section of the menu. |
| Heading | The root category for this section of the menu (can be left blank). |
| MenuOrder | The sort order to assign this section of the menu (higher numbers come first). |
| Flags | Set of ESectionFlags to customize this menu section. |