Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorGUIUtility.hierarchyMode

static var hierarchyMode: bool;
static bool hierarchyMode;
static hierarchyMode as bool

Description

Is the Editor GUI is hierarchy mode?

In hierarchy mode, EditorGUI.Foldout controls are positioned with the foldout triangle to the left of the specified Rect for the control, rather than being inside the Rect. This way, the label of the foldout is aligned together with labels of other Editor GUI controls.