Experimental: this API is experimental and might be changed or removed in the future.

MenuAction

class in UnityEngine.Experimental.UIElements

/

Inherits from:Experimental.UIElements.DropdownMenu.MenuItem

Switch to Manual

Description

菜单操作项目。

Variables

eventInfoProvides information on the event that triggered the drop-down menu.
nameThe name of the item. The name can be prefixed by its submenu path. Path components are delimited by forward slashes ('/').
status项目的状态。
userDataThe userData object stored by the constructor.

Constructors

DropdownMenu.MenuAction构造函数。

Public Functions

Execute执行与此项目关联的回调。
UpdateActionStatus通过调用项目状态回调更新此项目的状态标志。

Static Functions

AlwaysDisabled始终返回 StatusFlags.Disabled 的状态回调。
AlwaysEnabled始终返回 StatusFlags.Enabled 的状态回调。

Inherited members