This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// grab some global stuff from the level editor | |
FLevelEditorModule& LevelEditorModule = FModuleManager::GetModuleChecked<FLevelEditorModule>("LevelEditor"); | |
TSharedRef<FUICommandList> CommandBindings = LevelEditorModule.GetGlobalLevelEditorActions(); | |
const FLevelEditorModesCommands& ModesCommands = LevelEditorModule.GetLevelEditorModesCommands(); | |
FToolMenuOwnerScoped OwnerScoped(this); // not sure what this is for exactly, but other UToolMenu extenders do it | |
// hardcoded name for the modes toolbar, from FLevelEditorToolBar::RegisterLevelEditorToolBar() | |
UToolMenu* ModesToolbar = UToolMenus::Get()->ExtendMenu("LevelEditor.LevelEditorToolBar.ModesToolBar"); | |
// add a new section |
OlderNewer