get an array of all children unity code example Example: unity array of child objects Transform[] children = GetComponentsInChildren<Transform>();