ContextMenuUtility.AddMenuItemWithContext

Declaration

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

Parameters

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.

Description

Adds a MenuItem to the Scene view context menu.


Did you find this page useful? Please give it a rating: