FLevelEditorContextMenu::GenerateMenu

Populates the specified menu builder for the context menu that can be inserted into a pop-up window

Unreal Engine C++ API Reference > Editor > LevelEditor > FLevelEditorContextMenu

References

   
Module LevelEditor
Header /Engine/Source/Editor/LevelEditor/Public/LevelEditorContextMenu.h
Include #include "LevelEditorContextMenu.h"
Source /Engine/Source/Editor/LevelEditor/Private/LevelEditorContextMenu.cpp
static [UToolMenu](API\Developer\ToolMenus\UToolMenu) * GenerateMenu
(
    [TWeakPtr](API\Runtime\Core\Templates\TWeakPtr)< [ILevelEditor](API\Editor\LevelEditor\ILevelEditor) > LevelEditor,
    ELevelEditorMenuContext ContextType,
    [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FExtender](API\Runtime\Slate\Framework\MultiBox\FExtender) > Extender,
    const [FTypedElementHandle](API\Runtime\TypedElementFramework\Elements\Framework\FTypedElementHandle) & HitProxyElement
)

Remarks

Populates the specified menu builder for the context menu that can be inserted into a pop-up window

Parameters

Name Description
Menu The menu to fill
LevelEditor The level editor using this menu.
ContextType The context we should use to specialize this menu
Extender Allows extension of this menu based on context.
HitProxyActor The hitproxy actor in the case the ContextType is Viewport

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library