기술 자료

Unity Engine

Unity Engine

GetEnabled(string)

Gets the enabled status of a menu item.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.