unity iterate through child objects code example
Example 1: unity cycle children
for(int i = 0; i < gameobject.transform.GetChildCount(); i++)
{
Transform Children = gameobject.transform.GetChild(i);
}
Example 2: unity iterate all child objects
foreach(Transform child in transform)
{
Something(child.gameObject);
}