Show / Hide Table of Contents

Class DropdownMenu.MenuAction

Inheritance
Object
DropdownMenu.MenuItem
DropdownMenu.MenuAction
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class MenuAction : DropdownMenu.MenuItem

Constructors

| Improve this Doc View Source

MenuAction(String, Action<DropdownMenu.MenuAction>, Func<DropdownMenu.MenuAction, DropdownMenu.MenuAction.StatusFlags>, Object)

Declaration
public MenuAction(string actionName, Action<DropdownMenu.MenuAction> actionCallback, Func<DropdownMenu.MenuAction, DropdownMenu.MenuAction.StatusFlags> actionStatusCallback, object userData = null)
Parameters
Type Name Description
String actionName
Action<DropdownMenu.MenuAction> actionCallback
Func<DropdownMenu.MenuAction, DropdownMenu.MenuAction.StatusFlags> actionStatusCallback
Object userData

Fields

| Improve this Doc View Source

name

Declaration
public string name
Field Value
Type Description
String

Properties

| Improve this Doc View Source

eventInfo

Declaration
public DropdownMenu.EventInfo eventInfo { get; }
Property Value
Type Description
DropdownMenu.EventInfo
| Improve this Doc View Source

status

Declaration
public DropdownMenu.MenuAction.StatusFlags status { get; }
Property Value
Type Description
DropdownMenu.MenuAction.StatusFlags
| Improve this Doc View Source

userData

Declaration
public object userData { get; }
Property Value
Type Description
Object

Methods

| Improve this Doc View Source

AlwaysDisabled(DropdownMenu.MenuAction)

Declaration
public static DropdownMenu.MenuAction.StatusFlags AlwaysDisabled(DropdownMenu.MenuAction a)
Parameters
Type Name Description
DropdownMenu.MenuAction a
Returns
Type Description
DropdownMenu.MenuAction.StatusFlags
| Improve this Doc View Source

AlwaysEnabled(DropdownMenu.MenuAction)

Declaration
public static DropdownMenu.MenuAction.StatusFlags AlwaysEnabled(DropdownMenu.MenuAction a)
Parameters
Type Name Description
DropdownMenu.MenuAction a
Returns
Type Description
DropdownMenu.MenuAction.StatusFlags
| Improve this Doc View Source

Execute()

Declaration
public void Execute()
| Improve this Doc View Source

UpdateActionStatus(DropdownMenu.EventInfo)

Declaration
public void UpdateActionStatus(DropdownMenu.EventInfo eventInfo)
Parameters
Type Name Description
DropdownMenu.EventInfo eventInfo

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX