foreach (Transform child in parent) { //Your code }
GameObject Child; Child = transform.GetChild(0).gameObject;
foreach (Transform child in transform)
public List<GameObject> childrens = new List<GameObject>(); void Update() { foreach (Transform child in transform) { if (!childrens.Contains(child.gameObject)) { childrens.Add(child.gameObject); } } }