how to get an array of childeren in an oject unity code example Example: unity array of child objects Transform[] children = GetComponentsInChildren<Transform>();