public override void OnGUI(Rect position) { FPD_HeaderAttribute att = (FPD_HeaderAttribute)base.attribute; Rect pos = position; pos.height = base.GetHeight() + att.Height; pos.y += att.UpperPadding; GUI.Label(pos, new GUIContent(att.HeaderText), HeaderStyle); }
public override float GetHeight() { FPD_HeaderAttribute att = (FPD_HeaderAttribute)base.attribute; return(base.GetHeight() + att.Height + att.BottomPadding + att.UpperPadding); }