get tramsform hcildren in al list unity code example
Example 1: all children of transform
foreach(Transform child in transform) { // ... }
Example 2: unity get all children
foreach (Transform child in parent) {
//Your code
}
foreach(Transform child in transform) { // ... }
foreach (Transform child in parent) {
//Your code
}