unity create array from objects in a child code example Example: unity array of child objects Transform[] children = GetComponentsInChildren<Transform>();