add_menu_items

omni.kit.menu.utils.utils.add_menu_items(menu: list, name: str, menu_index: int = 0, can_rebuild_menus: bool = True, delegate=None)

add a list of menus items to menu. menu is list of MenuItemDescription() name is name to appear when menu is collapsed menu_index is horizontal positioning can_rebuild_menus is flag to call rebuild_menus when True delegate ui.MenuDelegate delegate