Version: 2023.2

ContextMenuUtility.AddMenuItemWithContext

切换到手册
public static void AddMenuItemWithContext (UIElements.DropdownMenu menu, IEnumerable<Object> context, string menuItemPath, string contextMenuPath);

参数

menu The Scene view context menu to add a MenuItem to.
context Target objects for the menu item.
menuItemPath The menu item path that is registered with MenuItem.
contextMenuPath The menu item path to display in the Scene view context menu.

描述

Adds a MenuItem to the Scene view context menu.