Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/MultiBox > API/Runtime/Slate/Framework/MultiBox/FMenuBuilder
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h |
| Include | #include "Framework/MultiBox/MultiBoxBuilder.h" |
FMenuBuilder
&40;
const bool bInShouldCloseWindowAfterMenuSelection,
TSharedPtr< const FUICommandList > InCommandList,
TSharedPtr< FExtender > InExtender,
const bool bCloseSelfOnly,
const ISlateStyle &42; InStyleSet,
bool bInSearchable,
FName InMenuName,
bool bInRecursivelySearchable
&41;
Remarks
Constructor
Parameters
| Name | Description |
|---|---|
| bInShouldCloseWindowAfterMenuSelection | Sets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box |
| InCommandList | The action list that maps command infos to delegates that should be called for each command associated with a multiblock widget |
| bInCloseSelfOnly | True if clicking on a menu entry closes itself only and its children but not the entire stack |
| bInSearchable | True if the menu is searchable |
| bInRecursivelySearchable | True if search algorithm should go down the sub-menus when searching. If false, the search will not scan the sub-menus. Recursive search is usually disabled on menus that are automatically generated in a way that the menu can expand indefinitely in a circular fashion. For example, the Blueprint API binding reflected on function return type can do that. Think about a function like "A* A::GetParent()". If a root menu expands "A" functions and expands on the function return types, then selecting "GetParent()" will expand another "A" menu. Without simulation, the reflection API don't know when the recursion finishes, nor does the recursive search algorithm. |