traverse over all child objects unity code example
Example: unity iterate all child objects
foreach(Transform child in transform)
{
Something(child.gameObject);
}
foreach(Transform child in transform)
{
Something(child.gameObject);
}