GetEnabled(string)
Gets the enabled status of a menu item.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool GetEnabled(string menuPath)
Parameters
A slash-delimited path to the item's position in the menu. For example, "Scene/Place on Surface".
Returns
Type | Description |
|---|---|
| bool | True if the menu item is enabled. False otherwise. |