文档

Unity Engine

Unity Engine

AddMenuItem(DropdownMenu, string, string)

Add a MenuItem to the Scene view context menu.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void AddMenuItem(DropdownMenu menu, string menuItemPath, string contextMenuPath = "")

Parameters

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.