Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetEnabled(string)

Gets the enabled status of a menu item.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool GetEnabled(string menuPath)

Parameters

menuPath

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

Returns

Type

Description

boolTrue if the menu item is enabled. False otherwise.