static public void AddChildrenAtSelf <T>(this Component item, IEnumerable <T> children) where T : Component { children.Process(c => item.AddChildAtSelf(c)); }
static public void AddChildrenAtSelf(this Component item, IEnumerable <GameObject> children) { children.Process(c => item.AddChildAtSelf(c)); }
static public T AddChildAtSelf <T>(this Component item, T child) where T : Component { item.AddChildAtSelf(child.IfNotNull(c => c.gameObject)); return(child); }
static public GameObject SpawnEmptyChildAtSelf(this Component item) { return(item.AddChildAtSelf(new GameObject())); }
static public T SpawnChildAtSelf <T>(this Component item, T prefab) where T : Component { return(item.AddChildAtSelf(prefab.SpawnInstance())); }
static public GameObject SpawnChildAtSelf(this Component item, GameObject prefab) { return(item.AddChildAtSelf(prefab.SpawnInstance())); }