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