public void RemoveChild(TUIWidget widget) { widget.transform.SetParent(null); widget.Parent = null; }
public void AddWidget(TUIWidget widget) { widget.transform.SetParent(this.transform); widget.Position = Vector2.zero; }
public void AddChild(TUIWidget widget) { widget.transform.SetParent(this.transform); widget.Parent = this; }