기술 자료

Unity Engine

Unity Engine

AddMenuItemWithContext(DropdownMenu, IEnumerable<Object>, string, string)

Adds a MenuItem to the Scene view context menu.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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.

menuItemPath

The menu item path that is registered with MenuItem.

contextMenuPath

The menu item path to display in the Scene view context menu.