public virtual UIElement Init (string Value = "", UIElement ParentElement=null, string Header="", Action action=null) { if (ParentElement != null) { parentElement = ParentElement; return Init (ParentElement.gameObject, Value, Header, action); } else { return Init (null, Value, Header, action); } }
public UIElement AddUIElement (string name, UIElement element, bool hideIfEmpty=false) { element.hideIfEmpty = hideIfEmpty; childElements.Add (name, element); return element; }