static public void SetChildren <T>(this Component item, IEnumerable <T> children) where T : Component { item.DestroyChildren(); item.AddChildren(children); }
static public void SetChildren(this Component item, IEnumerable <GameObject> children) { item.DestroyChildren(); item.AddChildren(children); }