Unity get child gameobject by name code example
Example 1: find child of gameobject unity
gameObject.transform.Find("ChildGameObject").gameObject;
Example 2: unity get child gameobject
GameObject originalGameObject = Instantiate(prefab);
GameObject child2 = originalGameObject.transform.GetChild(0).gameObject;
GameObject child2 = originalGameObject.transform.GetChild(1).gameObject;
GameObject child3 = originalGameObject.transform.GetChild(2).gameObject;
Example 3: get gameobject child by name
Gameobject.Find("ChildName") ;