Hi all, been porting custom sub menu creation in LevelEditor.MainMenu from C++ to Python. In C++ I could specify an insert position of the sub menu after the “Window” entry, but can’t work out how to do this in Python.
I know how to do this for a Menu Item in Python:
ItemObj = unreal.ToolMenuEntry(name=ItemName, type=unreal.MultiBlockType.MENU_ENTRY, insert_position=unreal.ToolMenuInsert("", unreal.ToolMenuInsertType.DEFAULT))
But you can’t specify insert_position
when calling unreal.ToolMenu.add_sub_menu
.
Anyone know how to add a sub menu to an existing editor menu and specify it’s insert position using Python?