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