AddMenuItemWithContext(DropdownMenu, IEnumerable<Object>, string, string)
Adds a MenuItem to the Scene view context menu.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Actions
- Assembly: UnityEditor.CoreModule
public static void AddMenuItemWithContext(DropdownMenu menu, IEnumerable<Object> context, string menuItemPath, string contextMenuPath = "")
Parameters
The Scene view context menu to add a MenuItem to.
Target objects for the menu item.
The menu item path to display in the Scene view context menu.