Version: 2023.2
public static void AddMenuItem (UIElements.DropdownMenu menu, string menuItemPath, string contextMenuPath);

参数

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

描述

Add a MenuItem to the Scene view context menu.