Version: 2023.2

Menu.GetEnabled

切换到手册
public static bool GetEnabled (string menuPath);

参数

menuPath A slash-delimited path to the item's position in the menu. For example, "Scene/Place on Surface".

返回

bool True if the menu item is enabled. False otherwise.

描述

Gets the enabled status of a menu item.