Skip to content

Instantly share code, notes, and snippets.

View tlm2021's full-sized avatar

Travis Mosley tlm2021

  • Cruise
  • Bay Area, California
  • X @tlm2021
View GitHub Profile
@tlm2021
tlm2021 / UnrealMenuExtender.cpp
Last active June 7, 2022 07:58
Adding new toolbar menus in Unreal
/* Continuation of answer to this question:
https://answers.unrealengine.com/questions/587450/how-to-make-a-simple-menu-in-the-editor-with-plugi.html */
void FMyPlugin::StartupModule()
{
FLevelEditorModule& LevelEditorModule =
FModuleManager::LoadModuleChecked<FLevelEditorModule>
(LEVELEDITOR_MODULE_NAME);
TSharedPtr<FExtender> MenuExtender = MakeShareable(new FExtender());