/// <summary> /// Call this method to draw the parent states in the gui. /// </summary> public void OnGUI() { if (s_Styles == null) { s_Styles = new ParentStatesEditor.Styles(); } // Save indentlevel int indentLevel = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; this.DrawHeader(); if (m_SerialProp.isExpanded) { this.DrawStates(); this.DrawFooter(); } // Restore indent level EditorGUI.indentLevel = indentLevel; }
/// <summary> /// Call this method to draw the parent states in the gui. /// </summary> public void OnGUI () { if (s_Styles == null) s_Styles = new ParentStatesEditor.Styles(); // Save indentlevel int indentLevel = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; this.DrawHeader(); if (m_SerialProp.isExpanded) { this.DrawStates(); this.DrawFooter(); } // Restore indent level EditorGUI.indentLevel = indentLevel; }