replace_menu_items

omni.kit.menu.utils.scripts.utils.replace_menu_items(new_menu: list, old_menu: list, name: str)

replace a existing list of menus items to menu. menu is list of MenuItemDescription() name is name to appear when menu is collapsed