unity getting children code example
Example 1: unity get child
GameObject Child;
Child = transform.GetChild(0).gameObject;
Example 2: unity get all children
foreach (Transform child in parent) {
//Your code
}
GameObject Child;
Child = transform.GetChild(0).gameObject;
foreach (Transform child in parent) {
//Your code
}