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