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