do something for all children of a gameObject unity code example Example: unity get all children foreach (Transform child in parent) { //Your code }