how to get a list of all children as gameobjects unity code example
Example 1: unity get all children
foreach (Transform child in parent) {
//Your code
}
Example 2: get all child gameObject of gameObject C#
foreach (Transform child in transform)