Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DropdownMenuAction

Represents a menu action item.
Read time 1 minuteLast updated 12 days ago

Definition

public class DropdownMenuAction : DropdownMenuItem

Constructors

Properties

Property

Description

eventInfoProvides information about the event that triggered the dropdown menu.
nameThe name of the item.
statusThe status of the item.
userDataThe userData object stored by the constructor.

Methods

Method

Description

ExecuteExecutes the callback associated with this item.
UpdateActionStatusUpdates the status flag of this item by calling the item status callback.

Static Methods

Method

Description

AlwaysDisabledCreates a status callback that always returns Disabled status.
AlwaysEnabledCreates a status callback that always returns Enabled.

Enums

Enum

Description

DropdownMenuAction.StatusStatus of the menu item.