EditorUtil.GUIState Class Reference

Stores the GUI status. Status includes: the indent level, hierarchyMode, and enabled/disabled state. Use the EditorUtil function RecordGUIState, RecordGUIStateAndSetToDefault,SetGUIStateToDefault,RestoreGUIState, or access the members manually. A rect can also be stored with the record functions, but not automatically restored.

Public Attributes

bool enabled
 The recored value of GUI.enabled;
 
bool hierarchyMode
 The recored value of EditorGUIUtility.hierarchyMode
 
int indentLevel
 The recorded value of EditorGUI.indentLevel
 
Rect originalPostion
 A Rect may optionally be provided as a parameter during record operations. Thought this Rect cannot be restored to anything automatically, it can be referenced by the user.