protected void DrawBox(Rect pos, SerializedProperty prop, float indent1, bool displayedValue) { float h = CalculateHeight(prop, displayedValue); pos.x = indent1; pos.width -= GUITools.iconButtonWidth; pos.height = h + GUITools.singleLineHeight * .1f; GUITools.Box(pos, GUITools.shade); }
protected void DrawBox(Rect pos, SerializedProperty prop, ref GUIContent label, float indent1, bool displayedValue) { string lbl = label.text; string tooltip = label.tooltip; float h = CalculateHeight(prop, displayedValue); label.text = lbl; label.tooltip = tooltip; pos.x = indent1; pos.width -= GUITools.iconButtonWidth; pos.height = h + GUITools.singleLineHeight * .1f; GUITools.Box(pos, GUITools.shade); }