Version: 2023.1

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 a menu item's enabled status.