get number of child gameobjects unity code example
Example 1: unity get number of child objects
// The number of child objects is given by:
GameObject.transform.childCount;
Example 2: find child of gameobject unity
gameObject.transform.Find("ChildGameObject").gameObject;
//This insures that you are finding the child instead of finding another
//GameObject's Child.